summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/parser/features
Commit message (Collapse)AuthorAgeFilesLines
* Style: Trim trailing whitespace and ensure newline at EOFRémi Verschelde2024-05-081-1/+0
| | | | Found by apply the file_format checks again via #91597.
* Add PackedVector4Array Variant typeK. S. Ernest (iFire) Lee2024-05-032-0/+4
| | | | | Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* GDScript: Suppress unused constant warning with underscoreGeorge Marques2024-04-182-52/+0
| | | | | | The warning message mentions that local constants prefixed with `_` does not generate the warning. This commit actually implements this warning suppression.
* Merge pull request #89472 from dalexeev/gds-fix-bin-tokenizer-continuation-linesRémi Verschelde2024-04-152-0/+14
|\ | | | | | | GDScript: Fix continuation lines in `GDScriptTokenizerBuffer`
| * GDScript: Fix continuation lines in `GDScriptTokenizerBuffer`Danil Alexeev2024-04-102-0/+14
| |
* | Fix multiline array/dictionary match statementsAiden Storey2024-04-124-0/+63
|/ | | | | | | | | | | Currently array and dictionary expressions cannot be spread over multiple lines in match statements. Adding mutliline push/pop while parsing the pattern for bracket and brace enables the ability for these to be multiline. This enables more complex patterns to be matched without exceeding line limits. Fixes #90372
* GDScript: Fix `@warning_ignore` annotation issuesDanil Alexeev2024-03-124-2/+15
|
* Support Array and PackedArray in @export_*Abel Toy2024-03-065-4/+276
|
* Merge pull request #82122 from dalexeev/gds-add-export-hidden-annotationRémi Verschelde2024-02-276-69/+105
|\ | | | | | | GDScript: Add `@export_storage` annotation
| * GDScript: Add `@export_storage` annotationDanil Alexeev2023-12-196-69/+105
| |
* | GDScript: Reintroduce binary tokenization on exportGeorge Marques2024-02-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | GDScript: Add `is not` operatorDanil Alexeev2024-02-042-0/+17
| |
* | Revert "Add UID support to GDScript files"Rémi Verschelde2024-01-292-6/+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-172-0/+6
| |
* | GDScript: Allow empty parentheses for property getter declarationDanil Alexeev2023-10-112-0/+6
|/
* GDScript: Add error when exporting node in non [Node]-derived classesDanil Alexeev2023-10-052-1/+8
|
* Merge pull request #80085 from vnen/gdscript-pattern-guardsYuri Sizov2023-09-282-0/+5
|\ | | | | | | GDScript: Implement pattern guards for match statement
| * GDScript: Implement pattern guards for match statementGeorge Marques2023-09-272-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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: Improve call analysisDanil Alexeev2023-09-216-0/+11
|/ | | | | | * Add missing `UNSAFE_CALL_ARGUMENT` warning. * Fix `Object` constructor. * Display an error for non-existent static methods.
* GDScript: Add raw string literals (r-strings)Danil Alexeev2023-09-112-0/+44
|
* GDScript: Allow mixed indentation on blank linesDanil Alexeev2023-08-172-0/+24
|
* Fix lambda parsing continuing on subsequent lines #73273今井きなみ2023-06-212-0/+84
|
* Merge pull request #73363 from dalexeev/gds-fix-min-int-not-representableRémi Verschelde2023-06-182-0/+33
|\ | | | | | | GDScript: Fix `MIN_INT` not representable as numeric literal
| * GDScript: Fix `MIN_INT` not representable as numeric literalDanil Alexeev2023-02-152-0/+33
| |
* | GDScript: Fix repeated `_` are allowed after decimal pointDanil Alexeev2023-06-142-9/+46
| |
* | GDScript: Reorganize and unify warningsDanil Alexeev2023-04-283-14/+14
| |
* | Merge pull request #72979 from dalexeev/gds-annotation-parsingYuri Sizov2023-04-172-0/+61
|\ \ | | | | | | GDScript: Fix and improve annotation parsing
| * | GDScript: Fix and improve annotation parsingDanil Alexeev2023-04-142-0/+61
| | |
* | | fix access to identifiers that are reserved keywordsajreckof2023-04-142-0/+37
|/ /
* | Fix GDScript code style regarding colonDanil Alexeev2023-03-052-5/+7
| |
* | Minor typo and docs URL fixesRémi Verschelde2023-02-281-1/+1
| |
* | GDScript: Fix parsing unexpected break/continue in lambdaDmitrii Maganov2023-02-232-0/+15
|/
* Merge pull request #72971 from vnen/gdscript-multiline-commentRémi Verschelde2023-02-092-0/+23
|\ | | | | | | GDScript: Allow strings as multiline comments
| * GDScript: Allow strings as multiline commentsGeorge Marques2023-02-092-0/+23
| | | | | | | | Bring back the behavior in 3.x that was left out by oversight.
* | GDScript: Be more lenient with identifiersGeorge Marques2023-02-094-0/+27
|/ | | | | | - 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.
* Revert "Remove script class checks when getting function signature"Rémi Verschelde2023-02-072-14/+0
| | | | | | This reverts commit 0fef203b1f39c3373f9f25b8e75e75f6b03f7c88. This introduced some other issues, as discussed in #72144.
* Remove script class checks when getting function signatureAdam Scott2023-02-072-0/+14
|
* GDScript: Fix `@export_enum` works only with `int`Danil Alexeev2023-01-302-0/+22
|
* GDScript: Allow variables in match patternsGeorge Marques2023-01-282-0/+27
| | | | To restore an ability available in 3.x and reduce compatibility changes.
* GDScript: Allow constant expressions in annotationsDanil Alexeev2023-01-252-2/+2
|
* 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-212-0/+49
|/ | | | | | 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-161-1/+1
|\ | | | | Make script annotations be placed before `class_name` and `extends`
| * Make script annotations placed before class_name and extendsAaron Franke2022-12-191-1/+1
| |
* | 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-106-121/+121
| | | | | | | | - Uniformize `.gd` unit test files indentation to tabs (where needed)