diff options
author | nyamatongwe <unknown> | 2002-04-18 23:41:21 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-04-18 23:41:21 +0000 |
commit | 8a9c3cc863bb221a66df96e3006ebbd358e23ebe (patch) | |
tree | e066aee66ba8cfd8f153e78ac25b3c4004ddfd53 | |
parent | 19f427d48b59ea50141c4820db9abd21f40e5ef1 (diff) | |
download | scintilla-mirror-8a9c3cc863bb221a66df96e3006ebbd358e23ebe.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); } } |