Skip to content

Releases: PrestonKnopp/tree-sitter-gdscript

v6.1.0

02 Nov 16:12

Choose a tag to compare

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

Full Changelog: v6.0.0...v6.1.0

v6.0.0

17 Jul 18:40

Choose a tag to compare

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"
  • add missing field("name", $.name)

New Contributors

Full Changelog: v5.0.1...v6.0.0

v5.0.1

14 May 18:34

Choose a tag to compare

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_expression on rhs
  • 8faa839 explicitly cast signed int to unsigned
  • da9a9ec avoid deref scanner if failed to allocate
  • 907beca add ** and **= operators
  • 0f3fb65 $.pattern_section parses arbitrary expressions
  • 33d37a5 $.variable_statement parses lone setassigns and getassigns

v2.0.0

22 Feb 03:14

Choose a tag to compare

Full Changelog: v1.9.0...v2.0.0

Breaking changes:

  • type is now a non-terminal. It resolves to identifier, subscript, or attribute.
  • dotted_type has been replaced by type. This applies to extends_statement.

v1.9.0

21 Feb 04:00

Choose a tag to compare

Full Changelog: v1.8.2...v1.9.0

v1.8.2

19 Feb 22:07

Choose a tag to compare

Full Changelog: v1.8.1...v1.8.2

v1.7.0

08 Feb 23:41

Choose a tag to compare

What's Changed

  • Add Prettier, add support for typed signals and %node by @Cretezy in #10

New Contributors

Notable Grammar Changes

Full Changelog: v1.4.0...v1.7.0

v1.4.0

21 Dec 07:16

Choose a tag to compare

minor version bump v1.3.0 -> v1.4.0

Upgrade to tree-sitter@^0.20.0

v1.3.0

21 Dec 01:58

Choose a tag to compare

minor version bump v1.2.1 -> v1.3.0

v1.2.1

27 Nov 19:54

Choose a tag to compare

patch version bump v1.2.0 -> v1.2.1