Page 4 of 4

Colorer — syntax highlighting and text parsing

Posted: Thu 13 Dec, 2018 10:07
by LigH

Latest post of the previous page:

The current repository is at:

https://github.com/colorer/FarColorer

Download binary releases from:

https://github.com/colorer/FarColorer/releases

Furthermore, a rather recent installation of Far Manager v3.0.5xxx should contain a just as recent FarColorer plugin.

Colorer — syntax highlighting and text parsing

Posted: Tue 21 May, 2019 10:51
by csaba.coder
I found a little error in the SQL.hrc file.
In SQL file the string content separator character apostrophe. ('some string'). If I use apostrophe as part of string content, I use double apostrophe ('string with '' character', therefore the escape charetrer is an other apostrophe). But the sql.hrc use as escape the backslash (\) character instead of apostrophe). Would be nice if support fix this error.

A possible fix:

sql.hrc from line 949 current:

<scheme name="stringApost" if="backslash_escapes">
<regexp match="/\\'/" region='def:StringContent'/>
</scheme>

With my fix:

<scheme name="stringApost" if="backslash_escapes">
<regexp match="/''/" region='def:StringContent'/>
</scheme>

This may not be the best, but working.