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
I don't think the $._newline is doing anything. The external scanner consumes newlines proactively when you are within () (unlike { for braced_expression, where it is needed)
I think we should also limit it to exactly 1 field("body", $._expression), rather than allowing for multiple, since R doesn't actually allow this for parenthesized expressions (note, not optional()! see Kevin's comments below)
The text was updated successfully, but these errors were encountered:
In addition, () alone is technically a parser error -- R requires there to be exactly one expression within the parentheses. The original definition was motivated by the "permissive" style parser but it sounds like we're moving away from that.
tree-sitter-r/grammar.js
Lines 282 to 286 in 4279b69
$._newline
is doing anything. The external scanner consumes newlines proactively when you are within()
(unlike{
forbraced_expression
, where it is needed)field("body", $._expression)
, rather than allowing for multiple, since R doesn't actually allow this for parenthesized expressions (note, notoptional()
! see Kevin's comments below)The text was updated successfully, but these errors were encountered: