Commit Graph

11 Commits

Author SHA1 Message Date
BenBlueeeee
4d7c23fe81 Statically type all function snippets (#958)
This also updates snippet names of the type "[name] method of [class]"
to correctly reference the class that defines them.

For example, _draw() was labelled as "of Node" before, but it's actually
CanvasItem which defines this function.
2026-02-04 00:41:52 +01:00
btarg
8059ba89c2 Add some useful GDScript snippets for Godot 4 (#794) 2025-02-13 10:57:29 -05:00
EJ
acfcfdbdab feat(snippets): add match statement (#476) 2023-08-27 22:06:41 +02:00
kemgoblin
570e848f03 Add "_unhandled_input" snippet (#422) 2022-09-16 09:57:51 -07:00
kemgoblin
b3f4dda47e Add _physics_process snippet (#411) 2022-08-21 21:40:39 +02:00
Lightning_A
5c5c19b534 Fix typo in snippets: "decleration" -> "declaration" (#262) 2021-03-15 17:12:45 +01:00
Hugo Locurcio
2042b5eb22 Remove extends snippet which no longer works since Godot 3.0
- Remove `set_process(true)`/`set_process_input(true)` snippets
  since these are enabled automatically in Godot 3.0 onwards.
2020-06-04 09:52:09 +02:00
Ankit Priyarup
ff7f31776a minor addition in configuration and grammar files
comment folding, addition of new keywords in grammar, removing wrong comments from snippets which was causing problem
2019-05-31 15:13:40 +05:30
Geequlim
57b6f1ad01 Fix indentations
Add more snippet
2017-08-14 20:47:59 +08:00
Geequlim
0618034ace Fix errors with gdscript language support 2017-08-14 16:41:10 +08:00
Koivulehto
c953f7773d Fixes for gdscript syntax checking (#7)
* Fixed the typo in the folder name configrations

Now the name is configurations. All the code
referencing the folder has also been updated.

* Updated deprecated variables

* Demonstration of current diagnostics issues

All the lines that get a complaint from diagnostics are marked
with #in 0.2.2 and a short explanation whether the complaint is valid
or not.

* Enabled syntax highlighting for comments

Now comments have a different colour compared to variables. Found it
unclear which file controls syntax so edited both
GDScript.full.tmLanguage.json and GDScript.tmLanguage.json. In addition
renamed test_files directory to be clearer and started working on
diagnostic.ts to fix false positives in syntax highglighting.

* Fixed checking comments for syntax

Now comments are not checked for syntax. This was achieved by excluding
comments from being parsed. In addition made it so that syntax check no
longer complains about empty lines having wrong indentation.

* Wrong committer details on previous commits

This commit should have the correct details.

* Added a comment explaining how nextline is parsed

* Reverted changes in symbolparser.ts

Also made minor additions to test_files.
2017-02-26 11:53:35 +08:00