From bae8cd712c167522a95a093296453a54dde4a524 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 25 May 2015 22:02:31 +0200 Subject: extended 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. --- lib/lexers/freebasic.tes | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/lexers/freebasic.tes') diff --git a/lib/lexers/freebasic.tes b/lib/lexers/freebasic.tes index 12e0263..471309a 100644 --- a/lib/lexers/freebasic.tes +++ b/lib/lexers/freebasic.tes @@ -1,8 +1,9 @@ ! AUTO-GENERATED FROM SCITE PROPERTY SET ! -@[lexer.test.freebasic]{ [_ - _.[bas,bi]M[lexer.checkname] -]_ } +@[lexer.test.freebasic]{ + :EN*.basQ*U.r + Q.r"F :EN*.biQ*U.r ' +Q.r} @[lexer.set.freebasic]{ ESSETLEXER,SCLEX_FREEBASIC -- cgit v1.2.3