Page 1 of 1

Regular Expression works in search but not in Parser

Posted: 19.09.2017 21:13
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*?\#

Posted: 26.09.2017 07:36
by Alexey
replied in Github.
you must turn off "skip spaces" in lexer general options.

Posted: 26.09.2017 09:37
by Alexey
Can you show your lexer, please?