syntax
syntax copied to clipboard
Tokenizer: support lookbehind assertions
Currently lookbehind assertions do not work, since ^ is inserted at the beginning of the whole regexp (tokenizer applies all regexes from the beginning of the rest of a string).
This should match foo ("foo" surrounded by spaces):
(?<= )foo(?= )
This incorrectly transformed to:
^(?<= )foo(?= )
While should be:
(?<=^ )foo(?= )