[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-patch] Editor syntax highlight keyword patch
|
This updates the C/C++ scanner to include some missing
pre-processor pieces.
-------------------------------------------------------------
Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@xxxxxxx OS Technology Developer
(613)-591-0931 http://www.qnx.com/
Index: src/org/eclipse/cdt/internal/ui/text/CCodeScanner.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CCodeScanner.java,v
retrieving revision 1.3
diff -u -r1.3 CCodeScanner.java
--- src/org/eclipse/cdt/internal/ui/text/CCodeScanner.java 5 Sep 2002 15:02:56 -0000 1.3
+++ src/org/eclipse/cdt/internal/ui/text/CCodeScanner.java 10 Oct 2002 02:07:18 -0000
@@ -52,7 +52,7 @@
private static String[] fgTypes= { "char", "double", "float", "int", "long", "short", "signed", "unsigned", "void", "_Bool", "_Complex", "_Imaginary"};
private static String[] fgConstants= { "NULL", "__DATE__", "__LINE__", "__TIME__", "__FILE__", "__STDC__"};
- private static String[] fgPreprocessor= { "#define", "#include", "#error", "#pragma", "#ifdef", "#ifndef", "#if", "#else", "#elif", "#endif", "#line"};
+ private static String[] fgPreprocessor= { "#define", "#undef", "#include", "#error", "#warning", "#pragma", "#ifdef", "#ifndef", "#if", "#else", "#elif", "#endif", "#line"};
private static String[] fgTokenProperties= {
Index: src/org/eclipse/cdt/internal/ui/text/CppCodeScanner.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CppCodeScanner.java,v
retrieving revision 1.2
diff -u -r1.2 CppCodeScanner.java
--- src/org/eclipse/cdt/internal/ui/text/CppCodeScanner.java 26 Jun 2002 21:53:41 -0000 1.2
+++ src/org/eclipse/cdt/internal/ui/text/CppCodeScanner.java 10 Oct 2002 02:07:18 -0000
@@ -164,7 +164,7 @@
private static String[] fgTypes= { "bool", "char", "double", "float", "int", "long", "short", "signed", "unsigned", "void", "wchar_t", "_Bool", "_Complex", "_Imaginary"};
private static String[] fgConstants= { "false", "NULL", "true", "__DATE__", "__LINE__", "__TIME__", "__FILE__", "__STDC__"};
- private static String[] fgPreprocessor= { "#define", "#include", "#error", "#pragma", "#ifdef", "#ifndef", "#line", "#undef", "#if", "#else", "#elif", "#endif"};
+ private static String[] fgPreprocessor= { "#define", "#undef", "#include", "#error", "#warning", "#pragma", "#ifdef", "#ifndef", "#line", "#undef", "#if", "#else", "#elif", "#endif"};
private static String[] fgTokenProperties= {