-
...
and..1
are now supported in more places, such asx$...
and[email protected]
(#148). -
parenthesized_expression
has been simplified to better align with R's parser. Specifically, it now expects exactly 1 requiredbody
expression, rather than allowing zero or more optional expressions (#144). -
fn(a b)
is now correctly parsed as an error rather than as two sequential arguments (#140). -
Fixed another issue where the
program
node didn't start at(0, 0)
if there was leading whitespace before the first token (#151). -
Newlines after
function
but before the()
are again allowed (#145). -
Newlines are now allowed after an
else
but before thealternative
(#141). -
The internal
_hex_literal
rule was simplified slightly (#138).
-
Switched to using
tree-sitter-language
in the Rust bindings to remove a dependency on a specifictree-sitter
crate version (#133). -
Fixed an issue where the
program
node didn't always start at(0, 0)
(#134). -
To align better with the R grammar and to greatly simplify the possible states in the tree-sitter grammar, some fields are no longer optional (#132).
- The
"body"
field offunction_definition
,for_statement
,while_statement
, andrepeat_statement
. - The
"close"
field ofbraced_expression
andparenthesized_expression
.
- The
- Changed tree-sitter dependency from
0.22.6
to>=0.21.0
to match other grammars and be less restrictive.
-
This release incorporates a complete rewrite of the grammar which has been incubating on the
next
branch for the past two years. It contains many bug fixes and improvements. If you still need to use the previous version, you can pin to themain-old
branch, which is the commit just before thenext
branch was merged in. -
Added a
CHANGELOG.md
to track changes.