From 0fe28a9c961b1037581b1d5e06425a654ca0f49b Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Wed, 4 Jun 2003 19:34:54 +0000 Subject: [PATCH] updated. --- core/org.eclipse.cdt.ui/ChangeLog | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/core/org.eclipse.cdt.ui/ChangeLog b/core/org.eclipse.cdt.ui/ChangeLog index d574c7858f8..b4f0b838e98 100644 --- a/core/org.eclipse.cdt.ui/ChangeLog +++ b/core/org.eclipse.cdt.ui/ChangeLog @@ -1,3 +1,23 @@ +2003-05-23 Alain Magloire + + Patch from Victor Mozgin to deal with PR 38405 + The CEditor did not do hilight for macros like + # define foo + + I've patched UI code to add a new rule for handling preprocessor directives, + PreprocessorRule class (extends WordRule). And here I noticed that + CppCodeScanner uses private class CWordRule, while CCodeScanner uses standard + WordRule. They seem to do exactly the same thing, but CWordRule additionally + checks for # sign to be the first character on the line. As now preprocessor + directives are handled by PreprocessorRule class, CWordRule can be removed and + replaced with WordRule; also, there is no need for CWordDetector to pick up # + sign as a valid word start. + + * src/org/eclipse/cdt/internal/ui/text/CCodeScanner.java + * src/org/eclipse/cdt/internal/ui/text/CppCodeScanner.java: removed + * src/org/eclipse/cdt/internal/ui/text/PreprocessorRule.java: New file + * src/org/eclipse/cdt/internal/ui/text/util/CWordDetector.java + 2003-05-23 Mikhail Khodjaiants PR 38047: Unable to save changes in C/C++ debug editor. * src/org/eclipse/cdt/ui/IEditorInputDelegate.java: new