Releases: PrestonKnopp/tree-sitter-gdscript
Releases · PrestonKnopp/tree-sitter-gdscript
v6.1.0
What's Changed
- Overhaul String Grammar and Enhance NodePath/StringName/GetNode Parsing by @asrrehel in #37
- Ensure that inline comments at the end of a function body get parsed inside the function body by @NathanLovato in #41
- Add support for the not in variant of the in operator by @NathanLovato in #44
- Add line continuation marks as anonymous nodes in the scene tree by @NathanLovato in #47
- Fix line continuation parsing, follow tree-sitter-python and make it a visible token by @NathanLovato in #48
- Fix Go binding to include external scanner by @squarepear in #59
- Support Godot 4.5 @abstract annotation by @TranquilMarmot in #38
- Simplify comment and region parsing, fix comment indentation edge cases by @NathanLovato in #45
- Allow declarations on the same line as class definitions, add grammar rules for class body by @NathanLovato in #58
- Address parser errors with match statements, annotations, tool var, and type inference in function parameters by @NathanLovato in #54
- build(deps-dev): bump tar-fs from 2.1.2 to 2.1.4 by @dependabot[bot] in #60
- Add support for not followed by await expression by @NathanLovato in #64
- Fix trailing comments after final statement in a function by @TranquilMarmot in #66
- Fix de-dented comment breaking function parsing by @TranquilMarmot in #71
- Don't consume comments and re-add special region handling by @TranquilMarmot in #73
New Contributors
- @squarepear made their first contribution in #59
- @TranquilMarmot made their first contribution in #38
Full Changelog: v6.0.0...v6.1.0
v6.0.0
What's Changed
- Add region support for folding regions in code editors by @NathanLovato in #34
- breaking: rename pair field "key" -> "left"
- add "op" field to augmented_assignment
- add "parameters" field to signal
- parse annotations before keywords on function_definition
- breaking: rename constructor_definition field "constructor_arguments" -> "arguments"
- breaking: rename export_variable_statement field "export_arguments" -> "arguments"
- add field "arguments" to
- annotation
- subscript
- attribute_subscript
- base_call
- call
- breaking: subscript and attribute_subscript accepts multiple arguments with subscript_arguments
- this mirrors calls accepting arguments
- attribute_subscript should accept _expression not just _primary_expression
- add the following fields:
- conditional_expression:
- "left", "condition", "right"
- pair:
- "key"
- lambda:
- "parameters", "body"
- conditional_expression:
- add missing field("name", $.name)
New Contributors
- @NathanLovato made their first contribution in #34
- @asrrehel Fix Unicode escape sequence length from 8 to 6 in \U pattern
Full Changelog: v5.0.1...v6.0.0
v5.0.1
Full Changelog: v2.0.0...v5.0.1
Breaking changes:
- d13890a merge "$.comparison_operator" into "$.binary_operator"
- 6b08e2d rm
$.underscore. use$.identifier
Additions:
- 82d664b SPM support
- 8eba3d7
$.binary_operator"as" now accepts$._primary_expressionon rhs - 8faa839 explicitly cast signed int to unsigned
- da9a9ec avoid deref scanner if failed to allocate
- 907beca add
**and**=operators - 0f3fb65
$.pattern_sectionparses arbitrary expressions - 33d37a5
$.variable_statementparses lone setassigns and getassigns
v2.0.0
Full Changelog: v1.9.0...v2.0.0
Breaking changes:
typeis now a non-terminal. It resolves toidentifier,subscript, orattribute.dotted_typehas been replaced bytype. This applies toextends_statement.
v1.9.0
Full Changelog: v1.8.2...v1.9.0
v1.8.2
Full Changelog: v1.8.1...v1.8.2
v1.7.0
What's Changed
New Contributors
Notable Grammar Changes
- Add typed signals, %node
- add annotation, annotations rules
- add set_body, get_body, _set_assign, _get_assign, _setget_body rules
- 86e8d44, 6f615af: adds support for anonymous functions
Full Changelog: v1.4.0...v1.7.0
v1.4.0
minor version bump v1.3.0 -> v1.4.0 Upgrade to tree-sitter@^0.20.0
v1.3.0
minor version bump v1.2.1 -> v1.3.0
v1.2.1
patch version bump v1.2.0 -> v1.2.1