[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: |
Mon, 9 Apr 2018 01:28:57 -0400 (EDT) |
CVSROOT: /sources/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 18/04/09 01:28:57
Modified files:
. : clang.c
Log message:
clang: keywords used as object property tags are regular identifiers
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/clang.c?cvsroot=qemacs&r1=1.133&r2=1.134
Patches:
Index: clang.c
===================================================================
RCS file: /sources/qemacs/qemacs/clang.c,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -b -r1.133 -r1.134
--- clang.c 30 Jun 2017 16:27:09 -0000 1.133
+++ clang.c 9 Apr 2018 05:28:57 -0000 1.134
@@ -1746,7 +1746,9 @@
if (cp->state_only && !tag)
continue;
- if (strfind(syn->keywords, kbuf)) {
+ /* keywords used as object property tags are regular
identifiers */
+ if (strfind(syn->keywords, kbuf) &&
+ str[i] != ':' && (start == 0 || str[start - 1] != '.')) {
style = C_STYLE_KEYWORD;
break;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemacs-commit] qemacs clang.c,
Charlie Gordon <=