[Top][All Lists]
[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 Apr 2008 16:13:41 +0000 |
CVSROOT: /cvsroot/qemacs
Module name: qemacs
Changes by: Charlie Gordon <chqrlie> 08/04/09 16:13:41
Modified files:
. : clang.c
Log message:
recognize more files: *.hh, #pragma
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/clang.c?cvsroot=qemacs&r1=1.35&r2=1.36
Patches:
Index: clang.c
===================================================================
RCS file: /cvsroot/qemacs/qemacs/clang.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- clang.c 8 Apr 2008 09:25:16 -0000 1.35
+++ clang.c 9 Apr 2008 16:13:40 -0000 1.36
@@ -45,7 +45,7 @@
"_Bool|_Complex|_Imaginary|";
static const char *c_mode_extensions =
- "c|h|y|e|cc|cs|cpp|cxx|hpp|hxx|idl|jav|java|js|qe|json|pcc|C|l|lex";
+ "c|h|y|e|cc|hh|cpp|hpp|cxx|hxx|cs|idl|jav|java|js|qe|json|pcc|C|l|lex";
#if 0
static int get_c_identifier(char *buf, int buf_size, unsigned int *p)
@@ -606,6 +606,10 @@
if (p->buf[0] == '/' && p->buf[1] == '/')
return 50;
+ /* same for file starting with '#pragma' as in #pragma once */
+ if (strstart(cs8(p->buf), "#pragma", NULL))
+ return 50;
+
return 0;
}
- [Qemacs-commit] qemacs clang.c,
Charlie Gordon <=