diff options
author | nyamatongwe <devnull@localhost> | 2010-06-07 23:35:16 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-06-07 23:35:16 +0000 |
commit | e4e13cecf95538bd81505cd9d037c91f232c19ac (patch) | |
tree | c254b40c1f4f34237db201328d1fb7b318f3e524 /src | |
parent | fea8d13bd2bf0aa6fba0308739aff08f9b9d5e2e (diff) | |
download | scintilla-mirror-e4e13cecf95538bd81505cd9d037c91f232c19ac.tar.gz |
Fix for bug #3012164 Cobol: number masks incorrectly highlighted.
Diffstat (limited to 'src')
-rw-r--r-- | src/LexCOBOL.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LexCOBOL.cxx b/src/LexCOBOL.cxx index cd42e3e89..05bf1d973 100644 --- a/src/LexCOBOL.cxx +++ b/src/LexCOBOL.cxx @@ -90,11 +90,11 @@ static int classifyWordCOBOL(unsigned int start, unsigned int end, /*WordList &k getRange(start, end, styler, s, sizeof(s)); char chAttr = SCE_C_IDENTIFIER; - if (isdigit(s[0]) || (s[0] == '.')) { + if (isdigit(s[0]) || (s[0] == '.') || (s[0] == 'v')) { chAttr = SCE_C_NUMBER; char *p = s + 1; while (*p) { - if (!isdigit(*p) && isCOBOLwordchar(*p)) { + if ((!isdigit(*p) && (*p) != 'v') && isCOBOLwordchar(*p)) { chAttr = SCE_C_IDENTIFIER; break; } |