t-edson / SynFacilSyn

Scriptable Highlighter for the SynEdit Component of Lazarus
GNU General Public License v2.0
34 stars 16 forks source link

fix rule for Hex, in Pas lexer #26

Closed Alexey-T closed 5 years ago

Alexey-T commented 5 years ago

$ffor must not be hex number fac

t-edson commented 5 years ago

I really have not idea what you mean. Please explain.

Alexey-T commented 5 years ago

SynFacil finds token "$ff" even if its inside "$ffor". it must ignore "$ff" here.

t-edson commented 5 years ago

What syntax XML file are you using?

Alexey-T commented 5 years ago

I run demo SynFacil+ATsynedit.

t-edson commented 5 years ago

I see. It's because of token definition in the "Pascal.xml" file:

<Token CharsStart="$" Content = '0..9ABCDEFabcdef' Attribute='NUMBER'> </Token>

It consider all tokens started with "$" like a number, including the following [0.9abcdef] chars. An accurate definiiton could be possible, but it will be more complex