summaryrefslogtreecommitdiffstats
path: root/modules/gdscript
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #71120 from jordigcs/ternaryGeorge Marques2023-01-253-5/+6
|\ | | | | Closes https://github.com/godotengine/godot/issues/71065
| * Allow standalone ternary expressionsjordi2023-01-193-5/+6
| |
* | Merge pull request #71349 from vonagam/disallow-infer-on-weakRémi Verschelde2023-01-259-9/+20
|\ \ | | | | | | | | | GDScript: Disallow type inference with untyped initializer
| * | GDScript: Disallow type inference with untyped initializerDmitrii Maganov2023-01-139-9/+20
| | |
* | | Clarify error message about script-level annotationDanil Alexeev2023-01-242-2/+6
| | |
* | | Merge pull request #70948 from vnen/gdscript-ptr-method-name-in-debugGeorge Marques2023-01-236-16/+82
|\ \ \
| * | | GDScript: Add names for disassembling function pointersGeorge Marques2023-01-236-16/+82
| | | | | | | | | | | | | | | | | | | | | | | | When instructions use function pointers, it's not possible to retrieve their original names in the disassembly. This stores the names in vectors (in debug builds) so they can be shown.
* | | | Merge pull request #71914 from vnen/gdscript-no-continue-matchRémi Verschelde2023-01-2310-76/+5
|\ \ \ \ | |/ / / |/| | | | | | | GDScript: Remove function of `continue` for match statement
| * | | GDScript: Remove function of `continue` for match statementGeorge Marques2023-01-2210-76/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #71676 from vnen/gdscript-unicode-identifiersRémi Verschelde2023-01-2313-33/+142
|\ \ \ \ | | | | | | | | | | | | | | | Add support for Unicode identifiers in GDScript and Expression
| * | | | Add support for Unicode identifiers in GDScriptGeorge Marques2023-01-2113-33/+142
| |/ / / | | | | | | | | | | | | | | | | | | | | 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 #71687 from reduz/support-script-class-name-in-efsRémi Verschelde2023-01-212-0/+5
|\ \ \ \ | |/ / / |/| | | | | | | Support script global resource name in EditorFileSystem
| * | | Support script global resource name in EditorFileSystemJuan Linietsky2023-01-212-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Works for binary and text files. * Makes EditorQuickOpen work with custom resources again. * Information is cached and easily accessible. Properly fixes #66179. Supersedes #66215 and supersedes #62417 **WARNING**: This required breaking backwards binary compatibility (.res and .scn files). Files saved after this PR is merged will no longer open in any earlier versions of Godot.
* | | | call update_exports from LSP didSave functionAdam Wardell2023-01-201-0/+1
| | | | | | | | | | | | | | | | | | | | exports in the inspector were not properly appearing when a gdscript was saved using an external IDE this commit adds a call to GDScript::UpdateExports toward the end of GDScriptTextDocument::didSave
* | | | Remove references to compiled GDScript in exportGeorge Marques2023-01-204-31/+2
|/ / / | | | | | | | | | | | | This feature was removed from GDScript so it should not be present on the interface nor in the saved export presets.
* | | Update `@icon` definition to add a noteAdam Scott2023-01-181-0/+2
| | |
* | | Fix unnammed enum crash regressionocean (they/them)2023-01-183-1/+9
| | |
* | | Merge pull request #71279 from vonagam/fix-iterator-number-typeRémi Verschelde2023-01-1623-12/+202
|\ \ \ | | | | | | | | GDScript: Fix typing of iterator in for loop
| * | | GDScript: Fix typing of iterator in for loopDmitrii Maganov2023-01-1323-12/+202
| | | |
* | | | Merge pull request #67774 from aaronfranke/script-annotationsRémi Verschelde2023-01-164-47/+15
|\ \ \ \ | | | | | | | | | | Make script annotations be placed before `class_name` and `extends`
| * | | | Make script annotations placed before class_name and extendsAaron Franke2022-12-194-47/+15
| | | | |
* | | | | Merge pull request #71434 from ↵Rémi Verschelde2023-01-162-3/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | adamscott/fix-reduce-identifier-from-base-class-script-retrieval Fix cyclic reference errors while reducing identifiers
| * | | | | Fix cyclic reference errors while reducing identifiers.Adam Scott2023-01-152-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Dmitrii Maganov <vonagam@gmail.com>
* | | | | | Merge pull request #69970 from poohcom1/fix/autocomplete-custom-classGeorge Marques2023-01-161-0/+8
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Fixes https://github.com/godotengine/godot/issues/69941
| * | | | | Add identifier completion for custom classes.poohcom12023-01-161-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, custom class would only auto-complete for types in GDScript. This applies it to identifiers as well.
* | | | | | Update all outdated online documentation linksYuri Sizov2023-01-141-1/+1
| | | | | |
* | | | | | Fix GDScript script templates to use a PascalCase style for `_CLASS_`Yuri Rubinsky2023-01-141-1/+1
| |_|_|/ / |/| | | |
* | | | | Merge pull request #71329 from vnen/gdscript-fix-enum-value-resolutionRémi Verschelde2023-01-131-2/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | GDScript: Fix infinite recursion in resolution of enum values
| * | | | | GDScript: Fix infinite recursion in resolution of enum valuesGeorge Marques2023-01-131-2/+2
| | |_|/ / | |/| | |
* | | | | Merge pull request #70540 from vaartis/multiline-arrays-dictionariesRémi Verschelde2023-01-131-0/+20
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | Implement export_multiline support for Array[String] and Dictionary
| * | | | Implement export_multiline support for Array[String] and DictionaryEkaterina Vaartis2022-12-251-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For arrays, specifically check if it's a string array and pass the type on to the editor. For dictionaries, save the hint on the type and use it later to draw the multiline editor, except for when adding a string key, because that doesn't make much sense. All string values however will be drawn as multiline.
* | | | | Merge pull request #70733 from vonagam/fix-assigning-untypedRémi Verschelde2023-01-126-81/+144
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | GDScript: Fix some issues with assignments that involve untyped things
| * | | | | GDScript: Fix some issues with assignments that involve untyped thingsDmitrii Maganov2023-01-126-81/+144
| | | | | |
* | | | | | Merge pull request #71197 from adamscott/add-default-virtual-path-gdscriptRémi Verschelde2023-01-123-1/+26
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Add default virtual `gdscript://` path to `GDScript` instances
| * | | | | | Add default virtual `gdscript://` path to `GDScript` instancesAdam Scott2023-01-123-1/+26
| | | | | | |
* | | | | | | Merge pull request #70700 from vonagam/fix-abstract-extendsRémi Verschelde2023-01-127-12/+49
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | GDScript: Fix extending abstract classes, forbid their construction
| * | | | | | GDScript: Fix extending abstract classes, forbid their constructionDmitrii Maganov2023-01-127-12/+49
| |/ / / / /
* | | | | | Merge pull request #70899 from adamscott/fix-vector-infRémi Verschelde2023-01-123-0/+10
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Fix parse error using Vector{2,3,4}.INF
| * | | | | Fix parse error using Vector{2,3,4}.INFAdam Scott2023-01-083-0/+10
| | | | | |
* | | | | | GDScript: Fix getting type from PropertyInfo for Variant argumentsDmitrii Maganov2023-01-126-20/+16
| | | | | |
* | | | | | Merge pull request #70987 from vonagam/fix-parameter-conversion-assignGeorge Marques2023-01-1210-12/+56
|\ \ \ \ \ \
| * | | | | | GDScript: Fix missing conversion for default argument valuesDmitrii Maganov2023-01-0610-12/+56
| | | | | | |
* | | | | | | Merge pull request #70713 from vonagam/fix-unnamed-enum-outer-conflictsGeorge Marques2023-01-123-8/+24
|\ \ \ \ \ \ \
| * | | | | | | GDScript: Fix false name conflicts for unnamed enumsDmitrii Maganov2022-12-293-8/+24
| | | | | | | |
* | | | | | | | GDScript: Fix small inconsistencies with resolve_datatypeDmitrii Maganov2023-01-121-35/+21
| | | | | | | |
* | | | | | | | GDScript: Fix temp values being written without proper clearGeorge Marques2023-01-114-61/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Temporary values in the stack were not being properly cleared when the return value of calls were discarded, which can cause memory issues especially for reference types like PackedByteArray.
* | | | | | | | Merge pull request #70595 from adamscott/add-gdscript-editorconfigRémi Verschelde2023-01-1124-226/+226
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Add GDScript `.editorconfig` rules
| * | | | | | | | Add GDScript `.editorconfig` rulesAdam Scott2023-01-1024-226/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Uniformize `.gd` unit test files indentation to tabs (where needed)
* | | | | | | | | GDScript: Fix use of conversion assign for variant valuesGeorge Marques2023-01-103-2/+14
|/ / / / / / / /
* | | | | | | | Merge pull request #71140 from vonagam/fix-const-index-subscript-typeRémi Verschelde2023-01-103-9/+10
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | GDScript: Fix type for index subscript on constant