aboutsummaryrefslogtreecommitdiffstats
path: root/queries/gdscript/indents.scm
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-121-78/+0
|
* feat(gdscript): update parsers and queries. (#6176)Preston Knopp2024-02-251-0/+1
| | | | | | | | | | | | | | | | | * 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
* chore: query formattingPham Huy Hoang2024-01-191-36/+35
|
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-15/+15
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* split delimiter into open_delimiter and close_delimiterGeorge Harker2023-03-241-2/+2
|
* Update gdscript queries (#4405)Preston Knopp2023-03-021-13/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Update parsers: gdscript, thriftGitHub2023-02-141-1/+1
| | | | | update gdscript indent queries to parser change and remove @Shatur as maintainer
* feat(indent): Implement basic indent for gdscript.Ryan Roden-Corrent2022-01-241-0/+24
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 ```