Colorer — syntax highlighting and text parsing

Here you can discuss about your favorite plug-in.
LigH
Posts: 61
Joined: Fri 19 Mar, 2010 14:12
Has thanked: 2 times

Colorer — syntax highlighting and text parsing

Post by LigH » Thu 13 Dec, 2018 10:07

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.
Last edited by LigH on Thu 13 Dec, 2018 10:12, edited 2 times in total.

csaba.coder
Posts: 1
Joined: Tue 21 May, 2019 10:18

Colorer — syntax highlighting and text parsing

Post by csaba.coder » Tue 21 May, 2019 10:51

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.

Post Reply

Return to “General Plug-In Discussions”