Regular Expression works in search but not in Parser

All questions regarding lexer highlighting schemes are discussed here...
Post Reply
jch
Posts: 1
Joined: 19.09.2017 20:58

Regular Expression works in search but not in Parser

Post by jch »

I am trying to detect the following Comments in a custom SynWrite lexer.

# Comment at start of line
# Comment proceeded by spaces

If I use the expression below in Search it detects both types of comments. The same expression in parser only detects the "Comment at start of line"

^\s*?\#
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

replied in Github.
you must turn off "skip spaces" in lexer general options.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Can you show your lexer, please?
Post Reply