I have a Lezer grammar that is working. Is recognizes these expressions:
expression {
Modifier | StackModifier | Keyword | NotText
}
There is one word “background:” that can be a Modifier when indented and a keyword when not. What approach should I take to making Lezer understand the distinction. I have been looking at
but I was wondering if there was a way to do it in the grammar files without a tokenizer.