Summary: | Problem with syntax highlighting of preprocessor directives | ||||||
---|---|---|---|---|---|---|---|
Product: | [Tools] CDT | Reporter: | Victor Mozgin <victor.mozgin> | ||||
Component: | cdt-core | Assignee: | Alain Magloire <alain> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | minor | ||||||
Priority: | P3 | Keywords: | contributed | ||||
Version: | 2.0 | ||||||
Target Milestone: | 1.2 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Victor Mozgin
2003-06-04 06:50:01 EDT
Created attachment 5053 [details]
Patch
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.
Patch applied. status flip to Fixed |