aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_parser.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* push variable later when created, to avoid self-referencing as a valid case, ↵Juan Linietsky2017-08-131-2/+5
| | | | | | closes #6111 (cherry picked from commit 95f10c620d475245e62bed81cb981aa47c926d0b)
* Fix typo in Parser Error messagecurtisxk382017-05-261-1/+1
| | | | (cherry picked from commit d35fab7382107c062b60aa770dea223d5a932ff6)
* Revert "Make inline blocks in GDScript more pythonic"Rémi Verschelde2017-04-081-9/+1
| | | | | This reverts commit 0c650c2511a69dc8af1069546aad4ff4d989923d. Fixes #8315.
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* Add enum naming, by assinging a given enum's values to a DictBojidar Marinov2017-04-061-0/+20
| | | | (cherry picked from commit 88430f0962403779670c3e82bbbc3ef3f6022169)
* Adds enums to GDScriptBojidar Marinov2017-04-061-0/+84
| | | | | | Fixes #2966 (cherry picked from commit 4ee82a2c38c57fb980df1ed4727d47959ba9e983)
* Make inline blocks in GDScript more pythonicBojidar Marinov2017-03-241-1/+9
| | | | | | Fixes #8001 (cherry picked from commit 18ab88b3f1000cbcab5704402e402e1cdf65862f)
* Bring that Whole New World to the Old Continent tooRémi Verschelde2017-03-191-1071/+1009
| | | | | Applies the clang-format style to the 2.1 branch as done for master in 5dbf1809c6e3e905b94b8764e99491e608122261.
* Style: Various fixes to play nice with clang-formatRémi Verschelde2017-03-181-1/+1
| | | | (cherry picked from commit 2a0ddc1e89ec7b947152c8d0cb132d58f2c00a81)
* Allow preload to accept a const string.Hein-Pieter van Braam2017-03-181-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 (cherry picked from commit 3e5743ca3619d9767caeddac8520463db50291f6)
* 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
|