summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/parser/errors
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@b3bcb2dc14691f7729984128dca26a844f662fa1Spartan3222024-10-224-0/+10
|\
| * GDScript: Fix annotation parsing adding new annotation entriesHolonProduction2024-10-134-0/+10
| |
* | Rebrand Godot to RedotRandolph W. Aarseth II2024-10-111-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Linux Editor tests workflow matrix Add Windows Editor w/ Mono workflow matrix Add Generate Glue Code job to Windows workflow Add Build GodotSharp job to Windows workflow Add godot compatibility version references Add Godot author info Add Godot version compatibility info Add Godot donor info Add Godot authors and donors to editor_about.cpp Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Add `@export_tool_button` annotation for easily creating inspector buttonsDanil Alexeev2024-09-272-0/+3
| | | | | | Co-authored-by: jordi <creptthrust@gmail.com> Co-authored-by: K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> Co-authored-by: Mack <86566939+Macksaur@users.noreply.github.com>
* GDScript: Fix `@warning_ignore` annotation issuesDanil Alexeev2024-03-121-1/+1
|
* Merge pull request #82952 from AbelToy/gds-export-arrayRémi Verschelde2024-03-064-0/+12
|\ | | | | | | Allow `@export`ed Arrays to set property hints for their elements
| * Support Array and PackedArray in @export_*Abel Toy2024-03-064-0/+12
| |
* | [GDScript] Fix some test file pathsA Thousand Ships2024-03-042-0/+0
|/
* GDScript: Reintroduce binary tokenization on exportGeorge Marques2024-02-082-0/+0
| | | | | | | | | | | | | | | | This adds back a function available in 3.x: exporting the GDScript files in a binary form by converting the tokens recognized by the tokenizer into a data format. It is enabled by default on export but can be manually disabled. The format helps with loading times since, the tokens are easily reconstructed, and with hiding the source code, since recovering it would require a specialized tool. Code comments are not stored in this format. The `--test` command can also include a `--use-binary-tokens` flag which will run the GDScript tests with the binary format instead of the regular source code by converting them in-memory before the test runs.
* Revert "Add UID support to GDScript files"Rémi Verschelde2024-01-296-20/+0
| | | | | | | | | | | This reverts commit c7f68a27ec4b825302998eeb5a400f869cd21cf7. We still think GDScript files need UIDs to allow safe refactoring, but we're still debating what form those should take exactly. So far there seems to be agreement that it shouldn't be done via an annotation as implemented here, so we're reverting this one for now, to revisit the feature in a future PR.
* Add UID support to GDScript fileskobewi2024-01-176-0/+20
|
* GDScript: Implement pattern guards for match statementGeorge Marques2023-09-272-0/+7
| | | | | | | | | | | | Within a match statement, it is now possible to add guards in each branch: var a = 0 match a: 0 when false: print("does not run") 0 when true: print("but this does") This allows more complex logic for deciding which branch to take.
* GDScript: Add raw string literals (r-strings)Danil Alexeev2023-09-116-0/+13
|
* Change explicit 'Godot 4.0' references to 'Godot 4'Rémi Verschelde2023-07-101-1/+1
| | | | Fixes #79276.
* Fix lambda parsing continuing on subsequent lines #73273今井きなみ2023-06-212-0/+8
|
* GDScript: Fix repeated `_` are allowed after decimal pointDanil Alexeev2023-06-144-2/+7
|
* Add support for static variables in GDScriptGeorge Marques2023-04-274-0/+15
| | | | | | | | | | Which allows editable data associated with a particular class instead of the instance. Scripts with static variables are kept in memory indefinitely unless the `@static_unload` annotation is used or the `static_unload()` method is called on the GDScript. If the custom function `_static_init()` exists it will be called when the class is loaded, after the static variables are set.
* GDScript: Add some checks for `@tool` and `@icon`Danil Alexeev2023-04-204-0/+14
|
* GDScript: Fix and improve annotation parsingDanil Alexeev2023-04-142-0/+6
|
* GDScript: Fix parsing unexpected break/continue in lambdaDmitrii Maganov2023-02-232-0/+7
|
* 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.
* Clarify error message about script-level annotationDanil Alexeev2023-01-241-1/+1
|
* Add support for Unicode identifiers in GDScriptGeorge Marques2023-01-212-0/+5
| | | | | | 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-162-3/+3
|\ | | | | Make script annotations be placed before `class_name` and `extends`
| * Make script annotations placed before class_name and extendsAaron Franke2022-12-192-3/+3
| |
* | Add GDScript `.editorconfig` rulesAdam Scott2023-01-103-5/+5
|/ | | | - Uniformize `.gd` unit test files indentation to tabs (where needed)
* 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
|/
* GDScript: Support `%` in shorthand for `get_node`George Marques2022-05-274-4/+4
| | | | | | 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: 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.
* Fix issues with multiple bind patterns in match statementcdemirer2022-04-042-0/+6
|
* Fix GDScript parser crash on 'dollar mixed with assignment' expressionPawel Lampe2021-11-212-0/+4
| | | | fixes #53696
* Improve GDScript indentation error messageMax Hilbrunner2021-10-281-1/+1
|
* GDScript: Show specific error when "yield" is usedGeorge Marques2021-09-212-0/+8
| | | | | To help people porting code, it gives a hint to use "await" instead of a generic error.
* Merge pull request #52718 from Calinou/gdscript-add-integration-tests-2Rémi Verschelde2021-09-218-0/+31
|\
| * Add more integration tests to the GDScript test suiteHugo Locurcio2021-09-158-0/+31
| | | | | | | | This also fixes a typo in the `bitwise_float_right_operand.gd` test.
* | GDScript: Properly catch error when missing index in subscriptGeorge Marques2021-09-172-0/+5
|/
* Merge pull request #52706 from vnen/gdscript-ternary-operator-crashRémi Verschelde2021-09-152-0/+6
|\ | | | | GDScript: Show error when missing expression after ternary else
| * GDScript: Show error when missing expression after ternary elseGeorge Marques2021-09-152-0/+6
| |
* | GDScript: Show error on unary operators without argumentGeorge Marques2021-09-1510-0/+22
|/
* Add dozens of new integration tests to the GDScript test suiteHugo Locurcio2021-09-1446-17/+125
| | | | This also ignores `.out` files in the file format static checks.
* Fix crash with consecutive commas in Dictionarykobewi2021-09-102-0/+4
|
* Fixed crash when parsing an empty assignment.Louis Dumont2021-08-252-0/+5
| | | | Resolves #51620.
* Rename GDScript test script filenames to use `snake_case`Andrii Doroshenko (Xrayez)2021-04-1616-0/+45