Commit b85ae6a
committed
Update GDScript parser, fix 4 issues
This commit updates the parser, which addresses 4 parsing issues:
- In Lua-style dicts, string keys were not supported (e.g. { "key" = value }). Added support for it
- Annotated signals errored out in inner classes. E.g. @warning_ignore() signal exited
- Inline if in lambdas like func(): if condition: ... caused an error
- @tool extends Node on one line was not supported. the annotation was parsed standalone and extends errored out
This addresses these 4 tickets in the formatter:
Close GDQuest#209: Missing space between extends and class_name GDQuest#209
Close GDQuest#201: if statements inside of lambdas are broken after formatting. GDQuest#201
Close GDQuest#136: Nested dictionaries using = for key value pairs are missing a space in some cases GDQuest#136
Close GDQuest#195: nnotation in inner class fails to parse causing broken formatting GDQuest#1951 parent 47e4630 commit b85ae6a
2 files changed
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments