tree-sitter / tree-sitter-julia

Julia grammar for Tree-sitter
MIT License
93 stars 32 forks source link

Metaprogramming shenanigans and other fixes #85

Closed savq closed 1 year ago

savq commented 1 year ago

Literals

Identifiers and operators

Primary expressions

Juxtapositions

tuples and function arguments

Assignments

Tests


This PR has two goals:

While it doesn't stand out, one of the most important changes is the extension of valid juxtapositions. tree-sitter has very poor support for explicit whitespace handling, so like in other whitespace sensitive cases, this is a best-effort approximation. It also results in a much more bloated src/parser.c.