andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 39 forks source link

Syntax highlight incorrect for Ruby #421

Open rovf opened 7 years ago

rovf commented 7 years ago

As you can see in the screenshot below, which shows an excerpt of a Ruby program, a sequence of 2 exclamation marks is highlighted incorrectly (the two adjacent exclamation marks are coloured differently).

If I insert a space between them, the colouring is correct. My guess is that the parser for syntax highlighting does not recognize two adjacent exclamation marks as two applications of the same unary operator.

capture_20161213_121153