It seems I found solution (optional, don't works by default):
--- scintilla/lexers/LexLisp.cxx Wed Mar 07 00:46:38 2018
+++ scintilla/lexers/LexLisp.cxx Wed Mar 07 00:42:04 2018
@@ -86,6 +86,8 @@
char chNext = styler[startPos];
Sci_PositionU lengthDoc = startPos + length;
styler.StartSegment(startPos);
+ /*gettext shorthand for Scheme, GIMP Script-Fu extension*/
+ bool scriptfu = styler.GetPropertyInt("lexer.scheme.scriptfu") == 1;
for (Sci_PositionU i = startPos; i < lengthDoc; i++) {
char ch = chNext;
chNext = styler.SafeGetCharAt(i + 1);
@@ -103,6 +105,11 @@
styler.ColourTo(i - 1, state);
radix = -1;
state = SCE_LISP_MACRO_DISPATCH;
+ }
+ /*gettext shorthand for Scheme, GIMP Script-Fu extension*/
+ else if (scriptfu && ch == '_' && chNext == '\"') {
+ styler.ColourTo(i - 1, state);
+ state = SCE_LISP_DEFAULT;
} else if (ch == ':' && isLispwordstart(chNext)) {
styler.ColourTo(i - 1, state);
state = SCE_LISP_SYMBOL;
And it requires two new strings in filetypes.Scheme.conf
:
[lexer_properties=Lisp]
lexer.scheme.scriptfu=1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.