qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs clang.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs clang.c
Date: Wed, 09 Sep 2015 23:55:26 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        15/09/09 23:55:26

Modified files:
        .              : clang.c 

Log message:
        clang: small improvement on regex coloring for jsx mode

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/clang.c?cvsroot=qemacs&r1=1.97&r2=1.98

Patches:
Index: clang.c
===================================================================
RCS file: /sources/qemacs/qemacs/clang.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -b -r1.97 -r1.98
--- clang.c     27 Aug 2015 23:03:41 -0000      1.97
+++ clang.c     9 Sep 2015 23:55:26 -0000       1.98
@@ -229,7 +229,7 @@
     // ECMA 262 strict mode future reserved words
     "let|private|public|yield|protected|"
     // JSX specific reserved words
-    "extern|native|as|operator|"
+    "extern|native|as|operator|abstract|"
 };
 
 static const char jsx_types[] = {
@@ -713,6 +713,7 @@
             }
             if ((mode_flags & CLANG_REGEX)
             &&  (qe_findchar(" [({},;=<>!~^&|*/%?:", prev)
+            ||   (str[i1] >> STYLE_SHIFT) == C_STYLE_KEYWORD
             ||   (str[i] != ' ' && (str[i] != '=' || str[i + 1] != ' ')
             &&    !(qe_isalnum(prev) || prev == ')')))) {
                 /* parse regex */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]