diakonos icon indicating copy to clipboard operation
diakonos copied to clipboard

Greedy Regex Highlighting [bug]

Open ikrase opened this issue 9 years ago • 1 comments

I saw this in Java code, but I suspect it may exist in other languages.

The regex highligher sometimes seems to greedily highlight things which are not regexes. In particular, if two successive strings each contain slashes in the wrong places, then they will be interpreted as a regex in the middle of a single string, with quotes inside it.

This isn't too frustrating, and I'm not sure if its easy to fix, but would be nice.

Thank you for adding python docstrings!

ikrase avatar Aug 09 '15 20:08 ikrase

@ikrase I realize this is a super old issue, but could you furnish me with some example code which demonstrates the problem? That is, assuming you even use Diakonos any more.

Pistos avatar Sep 22 '20 02:09 Pistos