Page 1 of 1

Incomplete RegEx parser? Some tokens doesn't work?

Posted: 27.10.2015 14:29
by Pether
I am trying to create my own lexer and i am currently stuck on trying to change font colour of the first occuring number on every line, lines which can be tabulated if they are inside a block.
I can select the first number easily, if it isnt tabbed, but getting the others doesn't seem to work.

^\t+[0-9]{0,2} - works on other regex parsers, but not the one in SynWrite, same with /s. And how should to tackle the problem if i am only to allow this if the tabs are within {-brackets? Create another lexer and use that as a sublex on the blockrange?

Posted: 27.10.2015 18:02
by Alexey
Lexr has property /skip spaces/-Turn if OFF for your lex- it also for Tabs