Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Style: Trim trailing whitespace and ensure newline at EOF | Rémi Verschelde | 2024-05-08 | 1 | -1/+0 |
| | | | | Found by apply the file_format checks again via #91597. | ||||
* | Add PackedVector4Array Variant type | K. S. Ernest (iFire) Lee | 2024-05-03 | 2 | -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 underscore | George Marques | 2024-04-18 | 2 | -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-lines | Rémi Verschelde | 2024-04-15 | 2 | -0/+14 |
|\ | | | | | | | GDScript: Fix continuation lines in `GDScriptTokenizerBuffer` | ||||
| * | GDScript: Fix continuation lines in `GDScriptTokenizerBuffer` | Danil Alexeev | 2024-04-10 | 2 | -0/+14 |
| | | |||||
* | | Fix multiline array/dictionary match statements | Aiden Storey | 2024-04-12 | 4 | -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 issues | Danil Alexeev | 2024-03-12 | 4 | -2/+15 |
| | |||||
* | Support Array and PackedArray in @export_* | Abel Toy | 2024-03-06 | 5 | -4/+276 |
| | |||||
* | Merge pull request #82122 from dalexeev/gds-add-export-hidden-annotation | Rémi Verschelde | 2024-02-27 | 6 | -69/+105 |
|\ | | | | | | | GDScript: Add `@export_storage` annotation | ||||
| * | GDScript: Add `@export_storage` annotation | Danil Alexeev | 2023-12-19 | 6 | -69/+105 |
| | | |||||
* | | GDScript: Reintroduce binary tokenization on export | George Marques | 2024-02-08 | 1 | -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` operator | Danil Alexeev | 2024-02-04 | 2 | -0/+17 |
| | | |||||
* | | Revert "Add UID support to GDScript files" | Rémi Verschelde | 2024-01-29 | 2 | -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 files | kobewi | 2024-01-17 | 2 | -0/+6 |
| | | |||||
* | | GDScript: Allow empty parentheses for property getter declaration | Danil Alexeev | 2023-10-11 | 2 | -0/+6 |
|/ | |||||
* | GDScript: Add error when exporting node in non [Node]-derived classes | Danil Alexeev | 2023-10-05 | 2 | -1/+8 |
| | |||||
* | Merge pull request #80085 from vnen/gdscript-pattern-guards | Yuri Sizov | 2023-09-28 | 2 | -0/+5 |
|\ | | | | | | | GDScript: Implement pattern guards for match statement | ||||
| * | GDScript: Implement pattern guards for match statement | George Marques | 2023-09-27 | 2 | -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 analysis | Danil Alexeev | 2023-09-21 | 6 | -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 Alexeev | 2023-09-11 | 2 | -0/+44 |
| | |||||
* | GDScript: Allow mixed indentation on blank lines | Danil Alexeev | 2023-08-17 | 2 | -0/+24 |
| | |||||
* | Fix lambda parsing continuing on subsequent lines #73273 | 今井きなみ | 2023-06-21 | 2 | -0/+84 |
| | |||||
* | Merge pull request #73363 from dalexeev/gds-fix-min-int-not-representable | Rémi Verschelde | 2023-06-18 | 2 | -0/+33 |
|\ | | | | | | | GDScript: Fix `MIN_INT` not representable as numeric literal | ||||
| * | GDScript: Fix `MIN_INT` not representable as numeric literal | Danil Alexeev | 2023-02-15 | 2 | -0/+33 |
| | | |||||
* | | GDScript: Fix repeated `_` are allowed after decimal point | Danil Alexeev | 2023-06-14 | 2 | -9/+46 |
| | | |||||
* | | GDScript: Reorganize and unify warnings | Danil Alexeev | 2023-04-28 | 3 | -14/+14 |
| | | |||||
* | | Merge pull request #72979 from dalexeev/gds-annotation-parsing | Yuri Sizov | 2023-04-17 | 2 | -0/+61 |
|\ \ | | | | | | | GDScript: Fix and improve annotation parsing | ||||
| * | | GDScript: Fix and improve annotation parsing | Danil Alexeev | 2023-04-14 | 2 | -0/+61 |
| | | | |||||
* | | | fix access to identifiers that are reserved keywords | ajreckof | 2023-04-14 | 2 | -0/+37 |
|/ / | |||||
* | | Fix GDScript code style regarding colon | Danil Alexeev | 2023-03-05 | 2 | -5/+7 |
| | | |||||
* | | Minor typo and docs URL fixes | Rémi Verschelde | 2023-02-28 | 1 | -1/+1 |
| | | |||||
* | | GDScript: Fix parsing unexpected break/continue in lambda | Dmitrii Maganov | 2023-02-23 | 2 | -0/+15 |
|/ | |||||
* | Merge pull request #72971 from vnen/gdscript-multiline-comment | Rémi Verschelde | 2023-02-09 | 2 | -0/+23 |
|\ | | | | | | | GDScript: Allow strings as multiline comments | ||||
| * | GDScript: Allow strings as multiline comments | George Marques | 2023-02-09 | 2 | -0/+23 |
| | | | | | | | | Bring back the behavior in 3.x that was left out by oversight. | ||||
* | | GDScript: Be more lenient with identifiers | George Marques | 2023-02-09 | 4 | -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 Verschelde | 2023-02-07 | 2 | -14/+0 |
| | | | | | | This reverts commit 0fef203b1f39c3373f9f25b8e75e75f6b03f7c88. This introduced some other issues, as discussed in #72144. | ||||
* | Remove script class checks when getting function signature | Adam Scott | 2023-02-07 | 2 | -0/+14 |
| | |||||
* | GDScript: Fix `@export_enum` works only with `int` | Danil Alexeev | 2023-01-30 | 2 | -0/+22 |
| | |||||
* | GDScript: Allow variables in match patterns | George Marques | 2023-01-28 | 2 | -0/+27 |
| | | | | To restore an ability available in 3.x and reduce compatibility changes. | ||||
* | GDScript: Allow constant expressions in annotations | Danil Alexeev | 2023-01-25 | 2 | -2/+2 |
| | |||||
* | Merge pull request #71914 from vnen/gdscript-no-continue-match | Rémi Verschelde | 2023-01-23 | 4 | -8/+3 |
|\ | | | | | | | GDScript: Remove function of `continue` for match statement | ||||
| * | GDScript: Remove function of `continue` for match statement | George Marques | 2023-01-22 | 4 | -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 GDScript | George Marques | 2023-01-21 | 2 | -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-annotations | Rémi Verschelde | 2023-01-16 | 1 | -1/+1 |
|\ | | | | | Make script annotations be placed before `class_name` and `extends` | ||||
| * | Make script annotations placed before class_name and extends | Aaron Franke | 2022-12-19 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #70899 from adamscott/fix-vector-inf | Rémi Verschelde | 2023-01-12 | 2 | -0/+9 |
|\ \ | | | | | | | Fix parse error using Vector{2,3,4}.INF | ||||
| * | | Fix parse error using Vector{2,3,4}.INF | Adam Scott | 2023-01-08 | 2 | -0/+9 |
| |/ | |||||
* | | Merge pull request #70713 from vonagam/fix-unnamed-enum-outer-conflicts | George Marques | 2023-01-12 | 2 | -0/+22 |
|\ \ | |||||
| * | | GDScript: Fix false name conflicts for unnamed enums | Dmitrii Maganov | 2022-12-29 | 2 | -0/+22 |
| |/ | |||||
* | | Add GDScript `.editorconfig` rules | Adam Scott | 2023-01-10 | 6 | -121/+121 |
| | | | | | | | | - Uniformize `.gd` unit test files indentation to tabs (where needed) |