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: Thu, 10 Apr 2014 07:14:17 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        14/04/10 07:14:16

Modified files:
        .              : clang.c 

Log message:
        c-mode: only handle preprocessor in C based languages

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

Patches:
Index: clang.c
===================================================================
RCS file: /sources/qemacs/qemacs/clang.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -b -r1.54 -r1.55
--- clang.c     5 Apr 2014 15:49:14 -0000       1.54
+++ clang.c     10 Apr 2014 07:14:14 -0000      1.55
@@ -227,9 +227,10 @@
             }
             break;
         case '#':       /* preprocessor */
-            /* XXX: C only */
+            if (mode_flags & (CLANG_C | CLANG_CPP | CLANG_OBJC)) {
             state = IN_C_PREPROCESS;
             style = C_STYLE_PREPROCESS;
+            }
             break;
         case 'L':       /* wide character and string literals */
             /* XXX: C only */



reply via email to

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