aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-12-06 17:20:52 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-12-06 17:20:52 +0300
commite5884ab2166ab5a03294baa54601b8785e6d9727 (patch)
tree0013120eed3e407cd047b734082d7011b9bab94f /lib
parentc4e73ae7ef24796cf1f24f0c30d93f2ab21a4572 (diff)
downloadsciteco-e5884ab2166ab5a03294baa54601b8785e6d9727.tar.gz
support the ::S anchored search (string comparison) command (and ::FD, ::FR, ::FS as well)
* The colon modifier can now occur 2 times. Specifying `@` more than once or `:` more than twice is an error now. * Commands do not check for excess colon modifiers - almost every command would have to check it. Instead, a double colon will simply behave like a single colon on most commands. * All search commands inherit the anchored semantics, but it's not very useful in some combinations like -::S, ::N or ::FK. That's why the `::` variants are not documented everywhere. * The lexer.checkheader macro could be simplified and should also be faster now, speeding up startup. Eventually this macro can be made superfluous, e.g. by using 1:FB or 0,1^Q::S.
Diffstat (limited to 'lib')
-rw-r--r--lib/lexer.tesbin719 -> 693 bytes
-rw-r--r--lib/lexers/bash.tes2
-rw-r--r--lib/lexers/lua.tes2
-rw-r--r--lib/lexers/perl.tes2
-rw-r--r--lib/lexers/python.tes2
5 files changed, 4 insertions, 4 deletions
diff --git a/lib/lexer.tes b/lib/lexer.tes
index ce22a74..e807c80 100644
--- a/lib/lexer.tes
+++ b/lib/lexer.tes
Binary files differ
diff --git a/lib/lexers/bash.tes b/lib/lexers/bash.tes
index 5dce149..33d6664 100644
--- a/lib/lexers/bash.tes
+++ b/lib/lexers/bash.tes
@@ -3,7 +3,7 @@
internally !
@[lexer.test.bash]{
- _#!M[sh,bash,ksh]M[lexer.checkheader]"S -1 '
+ _#!M[sh,bash,ksh]:M[lexer.checkheader]"S -1 '
:EN*.shQ*"S -1 '
:EN*.bshQ*"S -1 '
:EN*/configureQ*"S -1 '
diff --git a/lib/lexers/lua.tes b/lib/lexers/lua.tes
index 7c14af8..7ffe54a 100644
--- a/lib/lexers/lua.tes
+++ b/lib/lexers/lua.tes
@@ -1,7 +1,7 @@
! AUTO-GENERATED FROM SCITE PROPERTY SET !
@[lexer.test.lua]{
- _#!MluaM[lexer.checkheader]"S -1 '
+ _#!Mlua:M[lexer.checkheader]"S -1 '
:EN*.luaQ*
}
diff --git a/lib/lexers/perl.tes b/lib/lexers/perl.tes
index 3dd99ae..213dd4b 100644
--- a/lib/lexers/perl.tes
+++ b/lib/lexers/perl.tes
@@ -1,7 +1,7 @@
! AUTO-GENERATED FROM SCITE PROPERTY SET !
@[lexer.test.perl]{
- _#!M[perl,pl]M[lexer.checkheader]"S -1 '
+ _#!M[perl,pl]:M[lexer.checkheader]"S -1 '
:EN*.plQ*"S -1 '
:EN*.pmQ*"S -1 '
:EN*.podQ*
diff --git a/lib/lexers/python.tes b/lib/lexers/python.tes
index 0106f5c..f85f92b 100644
--- a/lib/lexers/python.tes
+++ b/lib/lexers/python.tes
@@ -1,7 +1,7 @@
!* Python lexer *!
@[lexer.test.python]{
- _#!MpythonM[lexer.checkheader]"S -1 '
+ _#!Mpython:M[lexer.checkheader]"S -1 '
:EN*.pyQ*"S -1 '
:EN*.pywQ*"S -1 '
:EN*.pyxQ*"S -1 '