summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/parser
AgeCommit message (Collapse)Author
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
2022-02-04Merge pull request #57591 from vnen/gdscript-enum-fixesRémi Verschelde
2022-02-03GDScript: Consolidate behavior for assigning enum typesGeorge Marques
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.
2022-01-23Merge pull request #57052 from KoBeWi/nosortRémi Verschelde
2022-01-22Merge pull request #55214 from Scony/fix-gdscript-crash-2Rémi Verschelde
Fix GDScript parser crash on 'dollar mixed with assignment' expression
2022-01-22Don't sort printed Dictionarykobewi
2022-01-02Fix various typosluz paz
Found via ` codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint,varn` Update editor/import/resource_importer_layered_texture.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update doc/classes/TileSetScenesCollectionSource.xml Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/gui/graph_edit.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/gui/rich_text_label.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Revert previously committed change
2021-12-13Fix shadowed global identifier warning duplicationYuri Roubinsky
2021-11-21Fix GDScript parser crash on 'dollar mixed with assignment' expressionPawel Lampe
fixes #53696