summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/parser
AgeCommit message (Collapse)Author
2023-03-13Fix GDScript code style regarding colonDanil Alexeev
(cherry picked from commit ea5fd3d732a85029e8372425904971ad26153ff1)
2023-02-28Minor typo and docs URL fixesRémi Verschelde
2023-02-23GDScript: Fix parsing unexpected break/continue in lambdaDmitrii Maganov
2023-02-09Merge pull request #72971 from vnen/gdscript-multiline-commentRémi Verschelde
GDScript: Allow strings as multiline comments
2023-02-09GDScript: Be more lenient with identifiersGeorge Marques
- Allow identifiers similar to keywords if they are in ASCII range. - Allow constants to be treated as regular identifiers. - Allow keywords that can be used as identifiers in expressions.
2023-02-09GDScript: Allow strings as multiline commentsGeorge Marques
Bring back the behavior in 3.x that was left out by oversight.
2023-02-07Revert "Remove script class checks when getting function signature"Rémi Verschelde
This reverts commit 0fef203b1f39c3373f9f25b8e75e75f6b03f7c88. This introduced some other issues, as discussed in #72144.
2023-02-07Remove script class checks when getting function signatureAdam Scott
2023-01-31Fix global script class parsing.Juan Linietsky
* Broke with #72226 * Restored previous version of the code, made it even more error tolerant. * Added a warning to **not** change the code. Fixes #72226.
2023-01-30GDScript: Fix `@export_enum` works only with `int`Danil Alexeev
2023-01-29Merge pull request #72285 from vnen/gdscript-variable-matchRémi Verschelde
GDScript: Allow variables in match patterns
2023-01-28GDScript: Allow variables in match patternsGeorge Marques
To restore an ability available in 3.x and reduce compatibility changes.
2023-01-29GDScript: Fix constant conversionsDmitrii Maganov
2023-01-25GDScript: Allow constant expressions in annotationsDanil Alexeev
2023-01-24Clarify error message about script-level annotationDanil Alexeev
2023-01-23Merge pull request #71914 from vnen/gdscript-no-continue-matchRémi Verschelde
GDScript: Remove function of `continue` for match statement
2023-01-22GDScript: Remove function of `continue` for match statementGeorge Marques
The keyword is confusing and rarely is used in the intended way. It is removed now in favor of a future feature (pattern guards) to avoid breaking compatibility later.
2023-01-21Add support for Unicode identifiers in GDScriptGeorge Marques
This is using an adapted version of UAX#31 to not rely on the ICU database (which isn't available in builds without TextServerAdvanced). It allows most characters used in diverse scripts but not everything.
2023-01-16Merge pull request #67774 from aaronfranke/script-annotationsRémi Verschelde
Make script annotations be placed before `class_name` and `extends`
2023-01-12Merge pull request #70899 from adamscott/fix-vector-infRémi Verschelde
Fix parse error using Vector{2,3,4}.INF
2023-01-12Merge pull request #70713 from vonagam/fix-unnamed-enum-outer-conflictsGeorge Marques
2023-01-10Add GDScript `.editorconfig` rulesAdam Scott
- Uniformize `.gd` unit test files indentation to tabs (where needed)
2023-01-09Merge pull request #70655 from vonagam/fix-assert-multilineRémi Verschelde
GDScript: Fix multiline and trailing comma for assert
2023-01-08Fix parse error using Vector{2,3,4}.INFAdam Scott
2023-01-08GDScript: Fix multiline and trailing comma for assertDmitrii Maganov
2022-12-30GDScript: Make using return of void function an errorGeorge Marques
Remove the `VOID_ASSIGNMENT` warning since those cases will be errors now.
2022-12-29GDScript: Fix false name conflicts for unnamed enumsDmitrii Maganov
2022-12-19Make script annotations placed before class_name and extendsAaron Franke
2022-11-21change RETURN_VALUE_DISCARDED GDScript warn textsouplamp
changed RETURN_VALUE_DISCARDED GDscript warning text to mention how the return value of a function is discarded; update GDScript parser warning test to include new warning text.
2022-10-14Add STATIC_CALLED_ON_INSTANCE warning to highlightclayjohn
when static functions are called directly from objects
2022-10-13Implement RETURN_VALUE_DISCARDED warning in GDscriptclayjohn
2022-10-04Improve dictionary printing to avoid confusion with arraysHugo Locurcio
- Add leading and trailing spaces within dictionaries, as the `{}` characters are hard to distinguish from `[]` on some fonts. This is especially helpful with empty arrays and dictionaries.
2022-08-31Improve null and object printing to avoid confusion with arraysHugo Locurcio
- Use different syntax for object printing to avoid confusion with arrays. - Print null as `<null>` to avoid confusion with a string `"null"`. - Display `<empty>` in editor resource pickers to avoid confusion with array-based properties.
2022-07-06Merge pull request #62701 from cdemirer/for-variable-conflictRémi Verschelde
2022-07-05Add grouping annotations for class properties in GDScriptYuri Sizov
2022-07-04Do error when for variable conflicts with a variable in scopecdemirer
2022-06-15Merge pull request #61666 from nathanfranke/fix-match-bindGeorge Marques
gdscript: use correct error for unused bind match, suppress with underscore
2022-06-14Merge pull request #57151 from cdemirer/fix-match-array-dict-pattern-logic-errorGeorge Marques
Fix logic errors in match-statement Array & Dictionary patterns
2022-06-03use correct error for unused bind match, suppress with underscoreNathan Franke
2022-05-27GDScript: Support `%` in shorthand for `get_node`George Marques
The `%` is used in scene unique nodes. Now `%` can also be used instead of `$` for the shorthand, besides being allowed generally anywhere in the path as the prefix for a node name.
2022-05-23GDScript: Fix lambda captures in default argument valuesGeorge Marques
2022-05-23GDScript: Fix `if` after lambda being seen as ternaryGeorge Marques
2022-05-23GDScript: Do not allow standalone lambdasGeorge Marques
They cannot be accessed in this case, so an error is shown to avoid misleading the uses, especially in case of named lambdas.
2022-05-18Merge pull request #55201 from Scony/fix-unreachable-code-false-positiveRémi Verschelde
2022-05-11Merge pull request #59863 from cdemirer/fix-match-multiple-bind-single-patternRémi Verschelde
Fix issues with multiple bind patterns in match statement
2022-05-03quote strings inside arrays and dictionariesNathan Franke
2022-04-19Fixes GDScript define nested dictionary and array as constants #50285PastMoments
2022-04-04Fix issues with multiple bind patterns in match statementcdemirer
2022-03-04Add test cases for accessing parent elements from child classstrank
2022-03-02Fix logic errors in match-statement Array & Dictionary Patternscdemirer