Dash character as it relates to numbers in highlighter

Discuss syntax highlighting or submit new syntax files.
Post Reply
jgodfrey
Posts: 471
Joined: 19 Aug 2011 23:02
Location: Missouri, USA

Dash character as it relates to numbers in highlighter

Post by jgodfrey »

Consider the following image:
number_highlight.png
number_highlight.png (6.02 KiB) Viewed 9729 times
Notice that my numbers are "yellow" in color. However, notice that the "-" characters are yellow also. I assume that's because the dash is being interpreted as a numeric negative sign. IMO, that would be fine if the dash preceded a number, however in this case it does not. Do I have any control over this? If not, is this something that could be changed/fixed in a future release?

Thanks,

Jeff
jgodfrey
Posts: 471
Joined: 19 Aug 2011 23:02
Location: Missouri, USA

Re: Dash character as it relates to numbers in highlighter

Post by jgodfrey »

Not sure when this was changed, but the above example seems to work as expected in v7.72.

Jeff
Post Reply