summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gd_parser.cpp
Commit message (Collapse)AuthorAgeFilesLines
* GDScript: Use "is" keyword for type checking.Andreas Haas2017-05-271-3/+3
| | | | | | | | | | | | | | | Replaces the `extends` keyword with `is` in the context of testing for type compatibility. `extends` is still used for declaring class inheritance. Example: ```gdscript extends Node2D func _input(ev): if ev is InputEventKey: print("yay, key event") ```
* Fix #8674, and rename a few things for clarityBojidar Marinov2017-05-081-8/+14
|
* Added autocomplete for file paths in the script editormbalint122017-04-181-0/+7
|
* Fixup #8123, seems like I forgot a few thingsBojidar Marinov2017-04-081-3/+3
| | | | | Should close #8315 Please test, I'm still unsure I did it correctly...
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* Fix typo in Parser Error messagecurtisxk382017-04-051-1/+1
|
* Merge pull request #8123 from bojidar-bg/gdscript-inline-block-indentRémi Verschelde2017-03-241-1/+9
|\ | | | | Make inline blocks in GDScript more (or less) pythonic
| * Make inline blocks in GDScript more pythonicBojidar Marinov2017-03-231-1/+9
| | | | | | | | Fixes #8001
* | Fix typos in source code using codespellRémi Verschelde2017-03-241-4/+4
|/ | | | From https://github.com/lucasdemarchi/codespell
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-1388/+1294
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Inf and NaN support added to GDScript.Saracen2017-02-281-0/+16
|
* Merge pull request #7809 from hpvb/fix-6798Rémi Verschelde2017-02-261-4/+25
|\ | | | | Allow preload to accept a const string.
| * Allow preload to accept a const string.Hein-Pieter van Braam2017-02-161-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | In preload() parsing this code will lookup the identifier in the local constant database. If the identifier corresponds to a string constant it is used as the path for preload(). Currently this does not work for global constants, only constants declared in the same class as the preload is happening. We can implement a full fix too. Maybe we can use this PR to discuss the possibilities. This (partially) fixes #6798
* | -begin of export work, not done yetJuan Linietsky2017-02-151-0/+2
|/ | | | -fixes to make scenes exported from godot 2.x work
* Fix parsing bug which causes range(variable) to crash the enginelonesurvivor2017-02-041-4/+3
| | | | | | | problem was a segmentation fault caused by trying to access Vector constants[0] which isn't there if op->arguments.size() is not bigger than one. - the changed OR condition didn't make sense (always true), should be AND - changes the "constant" variable to be false per default and gets set to true when there is actually something pushed to "constants"
* made _ a special token in GDScriptkarroffel2017-01-201-7/+6
|
* Style: Various fixes to play nice with clang-formatRémi Verschelde2017-01-161-1/+1
|
* Style: Cosmetic fixes to play nice with clang-formatRémi Verschelde2017-01-151-2/+2
|
* Compile error when duplicate key in dictionery literal #7034James Mintram2017-01-141-0/+11
|
* Merge pull request #6845 from karroffel/masterJuan Linietsky2017-01-141-0/+576
|\ | | | | Adds pattern matching to GDScript
| * pattern matcher: Implemented backendKarroffel2017-01-111-272/+299
| | | | | | | | changed comments
| * pattern matcher: Implemented transformationsKarroffel2017-01-111-28/+363
| |
| * pattern matching: implemented parserKarroffel2017-01-111-0/+214
| |
* | Merge pull request #4918 from jjay/f/error_on_redefineJuan Linietsky2017-01-141-0/+25
|\ \ | | | | | | Redefine var results in an error
| * | [GDScript] Redefine var results in an errorYakov Borevich2016-05-301-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | Error rised if redefine - function argument - for-loop argument - local-scope var Affects #3730
* | | Style: Fix whole-line commented codeRémi Verschelde2017-01-141-2/+2
| | | | | | | | | | | | | | | They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
* | | More efficient iteration syntax, and range() is converted behind the scenes ↵Juan Linietsky2017-01-111-0/+58
| | | | | | | | | | | | to it.
* | | Merge pull request #6930 from bojidar-bg/gdscript-export-array-hintRémi Verschelde2017-01-111-2/+33
|\ \ \ | | | | | | | | Allow typing hints for Array class (in GDScript and Inspector)
| * | | Allow typing hints for Array class (in GDScript and Inspector/ArrayPropertyEdit)Bojidar Marinov2016-10-261-2/+33
| | | | | | | | | | | | | | | | Closes #3586, by implementing the `1b` variation mentioned there.
* | | | Both Array and Dictionary are always in shared mode (removed copy on write).Juan Linietsky2017-01-111-2/+2
| | | |
* | | | It is now possible to name layers of different kinds!Juan Linietsky2017-01-101-1/+1
| | | |
* | | | Fix code completion for new getnode syntaxJuan Linietsky2017-01-081-4/+10
| | | |
* | | | -Fix bugs related to PoolVector crashesJuan Linietsky2017-01-081-0/+86
| | | | | | | | | | | | | | | | -Added ability to request nodes using $Name in GDScript :)
* | | | ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky2017-01-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Variant. All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
* | | | Revert expression reduction from #7390Rémi Verschelde2017-01-021-1/+1
| | | | | | | | | | | | | | | | Fixes #7412.
* | | | Merge pull request #7390 from bojidar-bg/gdscript-assign-errorRémi Verschelde2017-01-021-1/+10
|\ \ \ \ | | | | | | | | | | Disallow assignment to constants and expressions
| * | | | Disallow assignment to constants and expressionsBojidar Marinov2016-12-291-1/+10
| | | | | | | | | | | | | | | | | | | | Fixes #6221, fixes #6824
* | | | | Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-011-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
* | | | Merge pull request #6802 from henriquelalves/masterRémi Verschelde2016-11-111-2/+5
|\ \ \ \ | | | | | | | | | | Added small modification on gdscript parser to allow users insert '+' before variables
| * | | | Added small modification on parser for '+'Henrique L. Alves2016-10-221-2/+5
| | | | |
* | | | | Make GDScript parser ignore floating strings in class definitionBojidar Marinov2016-11-031-1/+10
| |/ / / |/| | | | | | | | | | | Fixes #1320
* | | | Revert "Add warning when (pre)loading paths with leading / (#4280 - #3106)"Fabio Alessandrelli2016-10-131-8/+0
|/ / / | | | | | | | | | | | | | | | Also closes: #6801 This reverts commit e59820ac94b7c9706298d5559608937dfca332e5.
* | | Merge pull request #6694 from bojidar-bg/gdscript-newline-functionsRémi Verschelde2016-10-111-2/+30
|\ \ \ | | | | | | | | Allow for linebreaks in function calls and definitions and yeild/signal.
| * | | Allow for linebreaks in function calls and definitions and yeild/signal.Bojidar Marinov2016-10-031-2/+30
| | |/ | |/| | | | | | | (Plus maybe a few other things)
* | | Merge pull request #6730 from Faless/fix_export_crash_errorRémi Verschelde2016-10-091-0/+10
|\ \ \ | | | | | | | | Throw an error when exporting a resource class
| * | | Throw an error when exporting a resource classFabio Alessandrelli2016-10-061-0/+10
| |/ / | | | | | | | | | | | | | | | | | | | | | "export var tex = Texture" will now throw an error to avoid crashing the editor: "Exported constant not a type or resource" Fixes #6719 . Closes #6729
* / / Add warning when (pre)loading paths with leading / (#4280 - #3106)Fabio Alessandrelli2016-10-041-0/+8
|/ /
* | Do ctrl-click on any code identifier to go to definiton or help page.Juan Linietsky2016-09-121-0/+9
| |
* | Merge pull request #6281 from bojidar-bg/gdscript-ternary-operatorJuan Linietsky2016-09-111-15/+83
|\ \ | | | | | | Ternary operator in GDScript (a if x else b)
| * | Ternary operator in GDScript (a if x else b)Bojidar Marinov2016-08-251-15/+83
| | | | | | | | | | | | Fixes #1961