diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-05-25 22:02:31 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-05-25 22:02:31 +0200 |
commit | bae8cd712c167522a95a093296453a54dde4a524 (patch) | |
tree | 1523fcf738c9dbd0b6d96222ccd693faa2938060 /lib/lexers/bash.tes | |
parent | 83f18d2578288fe71fca409e4f03434346b0d5b7 (diff) | |
download | sciteco-bae8cd712c167522a95a093296453a54dde4a524.tar.gz |
extended <EN> command and used it to optimize "lexer.test..." macros
* EN may now be used for matching file names (similar to fnmatch(3)).
This is used to check the current buffers file extension in the
lexer configuration macros instead of using expensive Q-Register
manipulations.
This halves the overall startup time - it is now acceptable even
with the current amount of lexer configurations.
* EN may now be used for checking file types.
session.tes has been simplified.
* BREAKS macro portability (EN now has 2 string arguments).
* The Globber class has been extended to allow filtering of
glob results by file type.
Diffstat (limited to 'lib/lexers/bash.tes')
-rw-r--r-- | lib/lexers/bash.tes | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/lexers/bash.tes b/lib/lexers/bash.tes index 80a3bbb..33cab3a 100644 --- a/lib/lexers/bash.tes +++ b/lib/lexers/bash.tes @@ -2,13 +2,13 @@ It's called bash.tes only because SciTE calls it this way internally ! -@[lexer.test.bash]{ [_ - _#!M[sh,bash,ksh]M[lexer.checkheader]"S - -1 - | - _[.sh,.bsh,configure,.ksh]M[lexer.checkname] - ' -]_ } +@[lexer.test.bash]{ + _#!M[sh,bash,ksh]M[lexer.checkheader]U.r + Q.r"F :EN*.shQ*U.r ' + Q.r"F :EN*.bshQ*U.r ' + Q.r"F :EN*/configureQ*U.r ' + Q.r"F :EN*.kshQ*U.r ' +Q.r} @[lexer.set.bash]{ ESSETLEXER,SCLEX_BASH |