Skip to content

Commit

Permalink
Update from tree-sitter-python
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Apr 19, 2024
1 parent d62801b commit 2acba62
Show file tree
Hide file tree
Showing 6 changed files with 52,155 additions and 51,845 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ module.exports = grammar({
)),

class_definition: $ => seq(
choice('class', 'struct'),
choice('class', 'struct', 'trait'),
field('name', $.identifier),
field('type_parameters', optional($.type_parameter)),
field('superclasses', optional($.argument_list)),
Expand Down
1 change: 1 addition & 0 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
"case"
"fn"
"struct"
"trait"
"var"
"let"
"alias"
Expand Down
1 change: 1 addition & 0 deletions runtime/queries/mojo/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"fn"
"class"
"struct"
"trait"
"var"
"let"
"alias"
Expand Down
4 changes: 4 additions & 0 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/node-types.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2acba62

Please sign in to comment.