You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extend lexer state (RegexVec) with these two numbers.
add some configuration syntax in lark (%config { ... } or similar) - this would let one configure what is the 1-level indent string (eg. " ") and whether to track nesting
indent level is fixed for the whole grammar (4 spaces or similar)
special lexemes INDENT, DEDENT, KEEPDENT (NEWLINE in Python spec), KEEPDENT_LAZY
they all imply a newline
need to identify which lexemes open/close parentheses/etc if any
(special lexemes not generated inside of parentheses (or other lexemes for that matter))
what about %ignore ? don't ignore \n clearly; otherwise special lexemes are greedy so should be fine?
for yaml, KEEPDENT can't be greedy:
foo: > line 1 indented line another a bit less and backbar: 2
The text was updated successfully, but these errors were encountered: