This is an alternative to pleshevskiy's tree-sitter-d2 (updated version).
WIP, THIS IS NOT USABLE YET
pleshivsky's version handles other locales and spaces very poorly.
Missing highlighting on style
block, ID and cyrillic using differeny scopes. Second shape (Заказ
) is parsed as ERROR
, but it's obviously correct.
I've never done anything remotely close to parsing grammar, so there could be some bad patterns and simply bad code. Feel free to open issues.