Andrius Rinkevicius
2014-08-24 11:38:28 UTC
Olivier,
this is probably related to my earlier post somewhat. It looks that I found
bug in regex pattern compiler for language files.
In order to reproduce create js file with
var foo =document.body.textAnchor;
or something similar. Notice the highlighting.
Now modify all-javascript.bfinc file, line 1733 to be:
<element pattern="=[ ]/" is_regex="1" highlight="js-brackets">
This should be equivalent to original , which had patter "= /". However,
the highlighting behavior will change after restart of bf. Change is a
little bit weird, the "document" string is not highlighted for some reason.
But is we add two spaces between = and document, then document gets correct
highlighting again.
Is this bug? Or, maybe, I am doing something incorrectly?
Andrius
this is probably related to my earlier post somewhat. It looks that I found
bug in regex pattern compiler for language files.
In order to reproduce create js file with
var foo =document.body.textAnchor;
or something similar. Notice the highlighting.
Now modify all-javascript.bfinc file, line 1733 to be:
<element pattern="=[ ]/" is_regex="1" highlight="js-brackets">
This should be equivalent to original , which had patter "= /". However,
the highlighting behavior will change after restart of bf. Change is a
little bit weird, the "document" string is not highlighted for some reason.
But is we add two spaces between = and document, then document gets correct
highlighting again.
Is this bug? Or, maybe, I am doing something incorrectly?
Andrius