Preston Knopp
9896ef5f70
feat(gdscript): update parsers and queries. ( #6176 )
...
* feat(gdscript): add highlight for (pattern_guard "when")
* feat(gdscript): update (type) highlights and support typed array
* feat(gdscript): add highlight to attribute subscript ident
* feat(gdscript): only apply @ constructor to init ident
* feat(gdscript): replace greedy (parameters) match with independent match
* feat(gdscript): add (typed_default_parameter) highlight
* feat(gdscript): add (constructor_definition) indent
* feat(gdscript): update big wall of built-in identifiers
2024-02-25 02:21:19 +09:00
Pham Huy Hoang
57a8acf0c4
chore: query formatting
2024-01-19 16:58:37 +01:00
George Harker
cb568af539
use indent.X syntax for captures and properties of set directives
...
update CONTRIBUTING.md
adjust indents for bass
fix doc capture comment
2023-03-24 13:07:53 -04:00
George Harker
b4fcc61175
split delimiter into open_delimiter and close_delimiter
2023-03-24 13:07:53 -04:00
Preston Knopp
36b1038a65
Update gdscript queries ( #4405 )
...
* locals(gdscript): update locals
* folds(gdscript): add folds
* indents(gdscript): update indents with notes
* highlights(gdscript): update highlights
* docs(gdscript): add gdscript maintainer
* indents(gdscript): add ERROR auto indent
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
* highlights(gdscript): use text.uri for get_node and node_path
* highlights(gdscript): add "@" of annotation as attribute
* highlights(gdscript): use keyword.operator for "new", match all attribute_call
* highlights(gdscript): update (underscore) and (pattern_open_ending)
---------
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2023-03-02 07:28:13 +00:00
GitHub
24f6653ffe
Update parsers: gdscript, thrift
...
update gdscript indent queries to parser change and remove @Shatur as
maintainer
2023-02-14 11:55:08 +01:00
Ryan Roden-Corrent
f67eb83be5
feat(indent): Implement basic indent for gdscript.
...
Indent is not handled correctly when adding new lines.
It seems that functions/loops/etc. are not recognized until they have at
least one indented block.
For example, if you enter a newline after `func foo():`, the cursor will
not be indented. If you manually indent and add a line like `pass`,
e.g.:
```
func foo():
pass
```
now any insertions above or below `pass` will be indented correctly.
This might be an issue with the grammar, as it seems to apply to highlights
as well.
The following will not be highligted
```
func foo():
```
However, the following will be:
```
func foo():
pass
```
2022-01-24 13:11:01 +01:00