diff options
author | nyamatongwe <unknown> | 2010-06-07 23:35:16 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-06-07 23:35:16 +0000 |
commit | e9e3ba249e7e3ad18b2091f7954a2b55cb024230 (patch) | |
tree | c254b40c1f4f34237db201328d1fb7b318f3e524 /src | |
parent | 0788c9315dbbee26e17a0ecf237fa2a1bbd291fb (diff) | |
download | scintilla-mirror-e9e3ba249e7e3ad18b2091f7954a2b55cb024230.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; } |