Konafets / antlers-idea

Adds support for Antlers, the templating language of Statamic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The minus assignment operator `-=` is not lexed correctly

Konafets opened this issue · comments

Given this node {{ foo-=3}} the string foo- is lexed as an identifier which leads to errors when adding spaces around the operator -=.

2023-03-18_12-58-28

The regex for the identifier must not allow minus - at the end of string.

2023-03-18_12-57-43 (1)