summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/parser
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove script class checks when getting function signatureAdam Scott2023-02-072-0/+14
|
* Fix global script class parsing.Juan Linietsky2023-01-311-1/+1
| | | | | | | | * 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.
* GDScript: Fix `@export_enum` works only with `int`Danil Alexeev2023-01-302-0/+22
|
* Merge pull request #72285 from vnen/gdscript-variable-matchRémi Verschelde2023-01-292-0/+27
|\ | | | | GDScript: Allow variables in match patterns
| * GDScript: Allow variables in match patternsGeorge Marques2023-01-282-0/+27
| | | | | | | | To restore an ability available in 3.x and reduce compatibility changes.
* | GDScript: Fix constant conversionsDmitrii Maganov2023-01-291-4/+4
|/
* GDScript: Allow constant expressions in annotationsDanil Alexeev2023-01-252-2/+2
|
* Clarify error message about script-level annotationDanil Alexeev2023-01-241-1/+1
|
* Merge pull request #71914 from vnen/gdscript-no-continue-matchRémi Verschelde2023-01-234-8/+3
|\ | | | | | | GDScript: Remove function of `continue` for match statement
| * GDScript: Remove function of `continue` for match statementGeorge Marques2023-01-224-8/+3
| | | | | | | | | | | | 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.
* | Add support for Unicode identifiers in GDScriptGeorge Marques2023-01-216-0/+65
|/ | | | | | 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.
* Merge pull request #67774 from aaronfranke/script-annotationsRémi Verschelde2023-01-163-4/+4
|\ | | | | Make script annotations be placed before `class_name` and `extends`
| * Make script annotations placed before class_name and extendsAaron Franke2022-12-193-4/+4
| |
* | Merge pull request #70899 from adamscott/fix-vector-infRémi Verschelde2023-01-122-0/+9
|\ \ | | | | | | Fix parse error using Vector{2,3,4}.INF
| * | Fix parse error using Vector{2,3,4}.INFAdam Scott2023-01-082-0/+9
| | |
* | | Merge pull request #70713 from vonagam/fix-unnamed-enum-outer-conflictsGeorge Marques2023-01-122-0/+22
|\ \ \
| * | | GDScript: Fix false name conflicts for unnamed enumsDmitrii Maganov2022-12-292-0/+22
| | |/ | |/|
* | | Add GDScript `.editorconfig` rulesAdam Scott2023-01-109-126/+126
| | | | | | | | | | | | - Uniformize `.gd` unit test files indentation to tabs (where needed)
* | | Merge pull request #70655 from vonagam/fix-assert-multilineRémi Verschelde2023-01-092-0/+26
|\ \ \ | |_|/ |/| | | | | GDScript: Fix multiline and trailing comma for assert
| * | GDScript: Fix multiline and trailing comma for assertDmitrii Maganov2023-01-082-0/+26
| |/
* / GDScript: Make using return of void function an errorGeorge Marques2022-12-302-11/+0
|/ | | | | Remove the `VOID_ASSIGNMENT` warning since those cases will be errors now.
* change RETURN_VALUE_DISCARDED GDScript warn textsouplamp2022-11-211-1/+1
| | | | 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.
* Add STATIC_CALLED_ON_INSTANCE warning to highlightclayjohn2022-10-142-0/+18
| | | | when static functions are called directly from objects
* Implement RETURN_VALUE_DISCARDED warning in GDscriptclayjohn2022-10-132-2/+6
|
* Improve dictionary printing to avoid confusion with arraysHugo Locurcio2022-10-044-6/+6
| | | | | | - 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.
* Improve null and object printing to avoid confusion with arraysHugo Locurcio2022-08-312-2/+2
| | | | | | | - 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.
* Merge pull request #62701 from cdemirer/for-variable-conflictRémi Verschelde2022-07-064-0/+11
|\
| * Do error when for variable conflicts with a variable in scopecdemirer2022-07-044-0/+11
| |
* | Add grouping annotations for class properties in GDScriptYuri Sizov2022-07-052-3/+3
|/
* Merge pull request #61666 from nathanfranke/fix-match-bindGeorge Marques2022-06-152-0/+19
|\ | | | | gdscript: use correct error for unused bind match, suppress with underscore
| * use correct error for unused bind match, suppress with underscoreNathan Franke2022-06-032-0/+19
| |
* | Merge pull request #57151 from cdemirer/fix-match-array-dict-pattern-logic-errorGeorge Marques2022-06-144-0/+93
|\ \ | |/ |/| Fix logic errors in match-statement Array & Dictionary patterns
| * Fix logic errors in match-statement Array & Dictionary Patternscdemirer2022-03-024-0/+93
| |
* | GDScript: Support `%` in shorthand for `get_node`George Marques2022-05-276-4/+72
| | | | | | | | | | | | 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.
* | GDScript: Fix lambda captures in default argument valuesGeorge Marques2022-05-232-0/+9
| |
* | GDScript: Fix `if` after lambda being seen as ternaryGeorge Marques2022-05-232-0/+9
| |
* | GDScript: Do not allow standalone lambdasGeorge Marques2022-05-232-0/+5
| | | | | | | | | | They cannot be accessed in this case, so an error is shown to avoid misleading the uses, especially in case of named lambdas.
* | Merge pull request #55201 from Scony/fix-unreachable-code-false-positiveRémi Verschelde2022-05-182-0/+18
|\ \
| * | Fix 'unreachable-code' false-positive, fixes #55154Pawel Lampe2021-11-212-0/+18
| | |
* | | Merge pull request #59863 from cdemirer/fix-match-multiple-bind-single-patternRémi Verschelde2022-05-114-0/+16
|\ \ \ | | | | | | | | Fix issues with multiple bind patterns in match statement
| * | | Fix issues with multiple bind patterns in match statementcdemirer2022-04-044-0/+16
| | | |
* | | | quote strings inside arrays and dictionariesNathan Franke2022-05-035-8/+8
| | | |
* | | | Fixes GDScript define nested dictionary and array as constants #50285PastMoments2022-04-192-0/+63
|/ / /
* | / Add test cases for accessing parent elements from child classstrank2022-03-042-0/+56
| |/ |/|
* | Merge pull request #57591 from vnen/gdscript-enum-fixesRémi Verschelde2022-02-042-0/+36
|\ \
| * | GDScript: Consolidate behavior for assigning enum typesGeorge Marques2022-02-032-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes sure that assigning values to enum-typed variables are consistent. Same enum is always valid, different enum is always invalid (without casting) and assigning `int` creates a warning if there is no casting. There are new test cases to ensure this behavior doesn't break in the future.
* | | Merge pull request #57052 from KoBeWi/nosortRémi Verschelde2022-01-231-1/+1
|\ \ \
| * | | Don't sort printed Dictionarykobewi2022-01-221-1/+1
| |/ /
* | | Merge pull request #55214 from Scony/fix-gdscript-crash-2Rémi Verschelde2022-01-222-0/+4
|\ \ \ | |/ / |/| | Fix GDScript parser crash on 'dollar mixed with assignment' expression
| * | Fix GDScript parser crash on 'dollar mixed with assignment' expressionPawel Lampe2021-11-212-0/+4
| |/ | | | | | | fixes #53696