Closed tajmone closed 6 years ago
See my comment about another fix: https://github.com/andre-simon/highlight/issues/23
Please don't merge these 2 commits yet ... I need to fix some issues which popped up in some edge-cases.
Hopefully, in a few days I'll fix them, carry some thorough testing for all edge cases and push another commit here.
The last commit (d87b2e
, lang def v1.6) finally fixes the strings problems at the expense of escaped sequences (temporarily suppressed, until I find a solution and test it throughly).
It also adds numbers definitions.
So this is good to merge (you can squash it a single commit if you prefer).
Finally I've manged (639651e
) to implement capturing escape sequences inside strings. It took a lot of testing to catch all edge-cases were strings could get corrupted, but at the end I've made it!
BUG-FIX: Added sanitize function to avoid false positive Escape Sequences in structured vars (eg: "\v" in "SomeStructure\var1").
Thanks to André Simon -- see Issue #23: -- https://github.com/andre-simon/highlight/issues/23