diff options
author | nyamatongwe <devnull@localhost> | 2002-04-18 23:41:21 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-04-18 23:41:21 +0000 |
commit | 8f8acdd7dfc57bb58b3a1fcf330095356145af6e (patch) | |
tree | e066aee66ba8cfd8f153e78ac25b3c4004ddfd53 | |
parent | ec35b21f63de33d079b6a17f8c55d9a0ded4b0b2 (diff) | |
download | scintilla-mirror-8f8acdd7dfc57bb58b3a1fcf330095356145af6e.tar.gz |
Using symbolc lexical class names for properties lexer.
-rw-r--r-- | src/LexOthers.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/LexOthers.cxx b/src/LexOthers.cxx index 5cffa0c3d..701059143 100644 --- a/src/LexOthers.cxx +++ b/src/LexOthers.cxx @@ -210,28 +210,28 @@ static void ColourisePropsLine( i++; if (i < lengthLine) { if (lineBuffer[i] == '#' || lineBuffer[i] == '!' || lineBuffer[i] == ';') { - styler.ColourTo(endPos, 1); + styler.ColourTo(endPos, SCE_PROPS_COMMENT); } else if (lineBuffer[i] == '[') { - styler.ColourTo(endPos, 2); + styler.ColourTo(endPos, SCE_PROPS_SECTION); } else if (lineBuffer[i] == '@') { - styler.ColourTo(startLine + i, 4); + styler.ColourTo(startLine + i, SCE_PROPS_DEFVAL); if (lineBuffer[++i] == '=') - styler.ColourTo(startLine + i, 3); - styler.ColourTo(endPos, 0); + styler.ColourTo(startLine + i, SCE_PROPS_ASSIGNMENT); + styler.ColourTo(endPos, SCE_PROPS_DEFAULT); } else { // Search for the '=' character while ((i < lengthLine) && (lineBuffer[i] != '=')) i++; if ((i < lengthLine) && (lineBuffer[i] == '=')) { - styler.ColourTo(startLine + i - 1, 0); + styler.ColourTo(startLine + i - 1, SCE_PROPS_DEFAULT); styler.ColourTo(startLine + i, 3); - styler.ColourTo(endPos, 0); + styler.ColourTo(endPos, SCE_PROPS_DEFAULT); } else { - styler.ColourTo(endPos, 0); + styler.ColourTo(endPos, SCE_PROPS_DEFAULT); } } } else { - styler.ColourTo(endPos, 0); + styler.ColourTo(endPos, SCE_PROPS_DEFAULT); } } |