summaryrefslogtreecommitdiffstats
path: root/scene/resources/syntax_highlighter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Connect `CodeHighlighter` with `TextEdit` without friend-accessYuri Sizov2023-09-191-1/+1
|
* Bind remaining theme properties to their respective classesYuri Sizov2023-09-131-1/+1
| | | | | | | | | | | | This adds binds for GraphEdit/GraphElement/GraphNode, which were skipped before due to a rework. This also adds binds for Window, which was skipped before due to a complicated code organization. Also adds theme cache entries/direct cache access to a few places that previously missed it. Some theme properties are now exposed to other classes via friendships or public getters for convenience. This removes all string-based theme access from scene/ classes.
* Make SyntaxHighlighter::get_text_edit a const function3deathtoll2023-04-071-1/+1
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Remove redundant Variant-types initializationsMarkus Sauermann2022-11-141-1/+1
|
* Cleanup and move char functions to the `char_utils.h` header.bruvzg2022-02-041-11/+3
|
* Improvments for SyntaxHighlightersPaulb232022-01-151-10/+38
| | | | | | | - Fix immedate Funcion in lamba highlight - Highlight signals as one colour - Highlight node paths as one colour - Highlight escape chars in strings
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-2/+2
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Rename `remove()` to `remove_at()` when removing by indexLightning_A2021-11-231-1/+1
|
* Restore syntax highlightingkobewi2021-08-231-1/+3
|
* Replace BIND_VMETHOD by new GDVIRTUAL syntaxreduz2021-08-221-16/+8
| | | | | | | | | | | * New syntax is type safe. * New syntax allows for type safe virtuals in native extensions. * New syntax permits extremely fast calling. Note: Everything was replaced where possible except for `_gui_input` `_input` and `_unhandled_input`. These will require API rework on a separate PR as they work different than the rest of the functions. Added a new method flag METHOD_FLAG_OBJECT_CORE, used internally. Allows to not dump the core virtuals like `_notification` to the json API, since each language will implement those as it is best fits.
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-1/+1
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-2/+2
|
* Optimize StringName usagereduz2021-07-181-1/+1
| | | | | | | | | | | * Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
* doc: Don't bind argument names with p_ prefixRémi Verschelde2021-02-041-6/+6
| | | | This prefix is used in the C++ codebase, not in the scripting API.
* Make SyntaxHighligher::_clear_highlighting_cache virtualGeorge Marques2021-02-041-2/+1
| | | | Since it's meant to be used as a virtual method.
* Removed duplicated binding of two methodsGeorge Marques2021-02-041-2/+0
| | | | | | They are bound as both regular and virtual methods which makes ClassDB report the methods twice when querying the API. The non-virtual binding is removed since both methods only seem to be used as virtual.
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Rename empty() to is_empty()Marcel Admiraal2020-12-281-1/+1
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-1/+1
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Switch from recursion to iterative for backfilling colour regionsPaulb232020-10-031-0/+7
|
* Changed line_edited_from(from) to lines_edit_from(from, to)Paulb232020-09-101-4/+4
|
* [Complex Test Layouts] Change `String` to use UTF-32 encoding on all platforms.bruvzg2020-09-031-4/+4
|
* Fix color region end key seach and start key orderPaulb232020-08-221-13/+16
|
* Fix colour region continuation over blank lines, issue 41120Paulb232020-08-081-0/+4
|
* Fixed shader editor comment highlightingBrian Semrau2020-07-281-1/+1
|
* Extract Syntax highlighting from TextEdit and add EditorSyntaxHighlighterPaulb232020-07-111-23/+566
| | | | | | | | - Extacted all syntax highlighting code from text edit - Removed enable syntax highlighting from text edit - Added line_edited_from signal to text_edit - Renamed get/set_syntax_highlighting to get/set_syntax_highlighter - Added EditorSyntaxHighligher
* Expose Syntax highlighter for editor pluginsPaulb232020-07-111-0/+9
|
* Convert syntax highlighters into a resourcePaulb232020-07-111-0/+77