We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
derives
70afdd5
case class MyClass() extends A derives B
There is actually no error but the derives clause is incorrectly parsed as postfix_expression:
postfix_expression
class_definition [50, 0] - [50, 33] name: identifier [50, 11] - [50, 18] class_parameters: class_parameters [50, 18] - [50, 20] extend: extends_clause [50, 21] - [50, 33] type: type_identifier [50, 29] - [50, 33] postfix_expression [51, 4] - [51, 16] identifier [51, 4] - [51, 11] identifier [51, 12] - [51, 16]
class_definition [50, 0] - [50, 46] name: identifier [50, 11] - [50, 18] class_parameters: class_parameters [50, 18] - [50, 20] extend: extends_clause [50, 21] - [50, 33] type: type_identifier [50, 29] - [50, 33] derive: derives_clause [50, 34] - [50, 46] type: type_identifier [50, 42] - [50, 46]
nvim-treesitter
The text was updated successfully, but these errors were encountered:
Fix derives clause on a new line
f286fc8
Fixes tree-sitter#349 Now `automatic_semicolon` is not emmited when newline is followed by "derives"
2764292
Successfully merging a pull request may close this issue.
Commit of tree-sitter-scala you tested this on
70afdd5
A code sample showing the error
Show the error node
There is actually no error but the
derives
clause is incorrectly parsed aspostfix_expression
:What do you expect the tree to look like
Where are you experiencing this error?
nvim-treesitter
The text was updated successfully, but these errors were encountered: