aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_parser.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-121-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! (cherry picked from commit c7bc44d5ad9aae4902280012f7654e2318cd910e)
* Disallow assignment to expressionsBojidar Marinov2017-01-121-0/+9
| | | | | | | Fixes #6824 (cherry picked from commits 0b077162a32d37b81c302ab26523efda05de3913 and dcc4ee21c14c1d3fc40c2058e41f853e8ce989c6)
* Ternary operator in GDScript (a if x else b)Bojidar Marinov2017-01-101-14/+82
| | | | Fixes #1961
* Allow for linebreaks in function calls and definitions and yeild/signal.Bojidar Marinov2017-01-101-2/+30
| | | | (Plus maybe a few other things)
* Revert "Add warning when (pre)loading paths with leading / (#4280 - #3106)"Fabio Alessandrelli2016-10-171-8/+0
| | | | | | | | Also closes: #6801 This reverts commit e59820ac94b7c9706298d5559608937dfca332e5. (cherry picked from commit 11349a786be1fd02647493cfeff9883898ffd73e)
* Throw an error when exporting a resource classFabio Alessandrelli2016-10-091-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 (cherry picked from commit ee7df2c89ab0608c84f8c9390e1ed888dc1f805d)
* Add warning when (pre)loading paths with leading / (#4280 - #3106)Fabio Alessandrelli2016-10-091-0/+8
| | | | (cherry picked from commit e59820ac94b7c9706298d5559608937dfca332e5)
* Set proper line into operators when parsing GDScript, fixes #5822Juan Linietsky2016-07-221-0/+11
|
* Allow semicolon after 'pass' keywordGeorge Marques2016-07-101-0/+4
|
* Revert removing of function call in gd_parserGeorge Marques2016-07-081-0/+1
| | | | | | The function call was removed in #5538 because of the unused return value, but the function itself has side effects and the absence of the call was causing crashes.
* Removed unused variables (first pass)Rémi Verschelde2016-07-071-2/+0
| | | | Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
* Only check for constants when parsing constants, should close #5497Juan Linietsky2016-06-301-19/+21
|
* Ability to put constants in constant expressions, closes #5264Juan Linietsky2016-06-291-0/+9
|
* Fixed bug related to resolving constants in a class, closes #1110Juan Linietsky2016-06-281-1/+1
|
* Properly report a valid error instead of reporting as a bug, closes #3841Juan Linietsky2016-06-241-2/+2
|
* remove unnecesary found bug? print, closes #5028Juan Linietsky2016-06-111-1/+1
|
* -All variables from script are visible through get_property_list(), not just ↵Juan Linietsky2016-06-111-0/+4
| | | | | | | those with export() -Added PROPERTY_USAGE_SCRIPT_VARIABLE to identify what comes from script -closes #5146
* Finalized DynamicFont implementationJuan Linietsky2016-05-291-1/+1
| | | | | | -DynamicFont uses Freetype by default -Editor fonts are now scalable thanks to this -Cleaned up documentation browser and added fonts for this
* remove trailing whitespaceHubert Jarosz2016-03-091-1/+1
|
* Revert "Merge pull request #3814 from est31/iterators_for_for"Rémi Verschelde2016-03-011-14/+0
| | | | | This reverts commit adf50568890cefb5fc354dbc1b21c4140bb410f9, reversing changes made to ee2bc87c0ef3cc1a432655ff935e60f32977904d.
* Use xrange for common "for i in range(...)" use caseest312016-02-281-0/+14
| | | | | Make the parser eliminate a wasteful allocation and initialisation of a possibly large array.
* Fix typo in errorest312016-02-241-1/+1
|
* can preload constantshondres2016-01-241-7/+15
|
* -remove unnecesary error report, fixes #3361Juan Linietsky2016-01-231-0/+5
|
* PI is now a built-in constant, fixes #2134Juan Linietsky2016-01-021-0/+7
|
* Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
|
* added missing onready allocation for subclassesZher Huei Lee2015-12-301-0/+2
| | | | Fixes #3158
* -add breakpoint statement to ease with debugging, closes #3165reduz2015-12-291-0/+11
|
* -fixed bug with some indent blocks not properly checked, fixes #2570reduz2015-12-291-4/+16
| | | | -added ability to do one-line blocks, such as: if something: print("hello") , to be more python-like
* -renamed function get_relative_transform() to ↵reduz2015-12-281-6/+2
| | | | | | get_relative_transform_to_parent(), makes more sense -fixed newly introduced bug in onready keyword, fixes #3155
* - added 'onready' keyword to gdscript. Defers initialization of member ↵reduz2015-12-281-2/+43
| | | | variables until _ready() is run.
* Add GDScript export hint for named bit flagseska2015-12-141-2/+40
| | | | Syntax: `export( int, FLAGS, "A Flag", "Another Flag" ) var flags`
* Add GDScript export hints for global filesystem and exponential rangeseska2015-12-111-6/+66
| | | | | | - File in global filesystem: `String, FILE, GLOBAL, "*.png"`, tool scripts only - Directory in global filesystem: `String, DIR, GLOBAL`, tool scripts only - Exponential range: `float, EXP, 50, 150, 2`
* GDScript: fixed highlighting of the next line when colon is missingkoalefant2015-11-291-2/+4
|
* Allow extending from Object in GDScripteska2015-11-121-1/+7
|
* Add GDScript export hint for real numbers with easing `export(float, EASE)`eska2015-10-161-0/+10
|
* Add multiline string GDScript export hint `export(String, MULTILINE)`eska2015-10-161-0/+11
|
* Revert "add flag and multiline hits in GDScript"eska2015-10-161-16/+9
| | | | This reverts commit 7843ec6633625455e689e711aa62e9d8337689fa.
* Fixes editor freezecrr00042015-09-021-1/+5
|
* detect node and variable assignments in _ready, _init, etc for further code ↵Juan Linietsky2015-08-301-10/+72
| | | | completion
* Ability to edit all kinds of arrays from the property editor.Juan Linietsky2015-08-251-3/+3
| | | | Yes, I'm trying to convince you to test the alpha release by adding all these now :)
* Merge pull request #2282 from Ovnuniarchos/masterJuan Linietsky2015-08-081-0/+11
|\ | | | | Bitmask editor and some CanvasItem documentation.
| * Added FLAGS to int hint to make an int a bitmask on the editor.Ovnuniarchos2015-07-201-0/+11
| |
* | add flag and multiline hits in GDScriptGen2015-08-011-9/+16
|/ | | | `export (flag) var test` for PROPERTY_HINT_ALL_FLAGS `export (multiline) var test` for PROPERTY_HINT_MULTILINE_TEXT
* improved get_node(), connect(), etc code completion.Juan Linietsky2015-06-261-2/+19
| | | | | -properly completes text arguments -includes the "/root" autoloads
* added ability to define signals in scriptJuan Linietsky2015-06-241-8/+63
| | | | closes #2175
* made parser accept EOF after "pass", fixes #1488Juan Linietsky2015-04-261-1/+1
|
* Updated copyright year in all headersJuan Linietsky2015-04-181-1/+1
|
* -Concatenating arrays keeps the shared property if any of the arrays is ↵Juan Linietsky2015-04-071-0/+1
| | | | shared. Fixes #1646
* -added new code completion guess locations, closes #1032Juan Linietsky2015-01-031-4/+10
| | | | -moved commandline fix to mingw-only, should fix #1064