Re: Appending to file.patterns.bash

"'Neil Hodgson' via scite-interest" <[email protected]> Tue, 26 Sep 2023 07:42:29 +1000
Newsgroups gmane.editors.scite.general
Message-ID <[email protected]>
ed.adasiewicz:

> I am trying to add .bashrc and .bash_profile to file.patterns.bash. So within my User Options File I add file.patterns.bash=$(file.patterns.bash);.bashrc;.bash_profile, This results in only .bashrc and .bash_profile being colorized - i.e. abc.sh is no longer colorized. Am I doing something wrong? 

   It is not possible to append to a variable as variables are evaluated when read to allow modifying in more-specific (directory or local) properties files. The value becomes recursive so the recursive reference is treated as empty. So equivalent to file.patterns.bash=;.bashrc;.bash_profile

   Replace this with

file.patterns.bash=*.sh;*.bsh;configure;*.ksh;.bashrc;.bash_profile

   It may be possible to add support for appending to variables, possibly with an explicit syntax if someone wants to develop an implementation.

   Neil

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/scite-interest/B9DE5135-E679-4081-9B6E-D7159DA8F410%40me.com.