Skip to content

Conversation

@sockeye-d
Copy link

I'm not sure if I did this right, but I added two new tree-sitter definitions for GDScript files (*.gd) and Godot text resources (*.tres, *.tscn, project.godot).

Neither of them have highlighting — I'm not sure if there's a scm file for GDScript already, and I don't know how to make one.

… name

modified rules:
- {augmented,_variable{_inferred_type,_typed,}}_assignment
- parenthesized_expression
- assignment
- pair
- array
- {typed_default,default}_parameter
- function_definition
- argument_list

Anonymous functions are parsing correctly, but the current body rule does
not allow the following:

    call(func hello(): pass) # ERROR MISSING newline

The body rule should allow being a single statement with no following
newline.
Still fails to parse the following:

    var p = func(): if true: pass else: pass
PrestonKnopp and others added 29 commits September 26, 2025 17:25
…rn/tar-fs-2.1.4

Bump tar-fs from 2.1.2 to 2.1.4
Add support for not followed by await expression
Fix trailing comments after final statement in a function
Fix de-dented comment breaking function parsing
…a8b79c9afe2eb71a6a7bfa809e995'

git-subtree-dir: vendored_parsers/tree-sitter-gdscript
git-subtree-mainline: b0e331e
git-subtree-split: 839cd92
…895f54bf74d53a08572f7b26a6614209adc'

git-subtree-dir: vendored_parsers/tree-sitter-godot-resource
git-subtree-mainline: 6301ddf
git-subtree-split: 302c189
@wetneb
Copy link
Contributor

wetneb commented Oct 14, 2025

I'm not a maintainer, but be aware that we're in the process of unvendoring parsers so that they are fetched from crates.io instead (#891), so I would be reluctant to introduce new parsers that are vendored (I think the godot ones are available on crates.io).

I updated the recommended process here: #902

That being said, I think given that there are quite a few open PRs adding support for new languages, it's probably worth checking if new languages are welcome at the moment or not (before you put more work into this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.