andre-simon / highlight

Source code to formatted text converter
GNU General Public License v3.0
206 stars 58 forks source link

PureBASIC Lang Def v1.4 #25

Closed tajmone closed 6 years ago

tajmone commented 6 years ago

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

andre-simon commented 6 years ago

See my comment about another fix: https://github.com/andre-simon/highlight/issues/23

tajmone commented 6 years ago

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.

tajmone commented 6 years ago

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).

tajmone commented 6 years ago

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!