I am using syntax highlighting with COBOL. It works very nicely except that it considers dashes ("-") to be delimiters and to separate terms. As a result, I'll get reserved words highlighted in the middle of variable names, ie: in this variable name, "POINTER" would be one color while the rest would be another: WORK-STRING-POINTER
How can I change the syntax file to keep this from happening?
Syntax colors parts of words
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
bobcongmon
- Posts: 1
- Joined: Thu Sep 18, 2003 2:45 pm
Syntax highlighting in Cobol
This works great, thanks...except I notice that it does not work if other parts of the word are purely NUMERIC.
For example, in paragraph name 2200-EXIT, the word EXIT (and only that word) is still highlighted. If the name is 2200A-EXIT, the complete name is not highlighted (which is what we want).
For example, in paragraph name 2200-EXIT, the word EXIT (and only that word) is still highlighted. If the name is 2200A-EXIT, the complete name is not highlighted (which is what we want).