summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/editor/gdscript_highlighter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Rebrand preambles to RedotSpartan3222024-10-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit e8542b06acca3c1bdeee4b528411771f0819f084) Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* [Scene] Add `SceneStringNames::font(_size/_color)`A Thousand Ships2024-06-181-1/+1
|
* GDScript: Fix highlighting escapes in multiline raw stringsDanil Alexeev2024-04-091-17/+24
|
* GDScript: Fix `for` expression is highlighted as typeDanil Alexeev2024-03-181-9/+23
|
* GDScript: Fix type highlighting after whitespaceDanil Alexeev2024-02-261-6/+8
|
* Merge pull request #86176 from dalexeev/gds-fix-type-highlightingRémi Verschelde2024-01-301-33/+50
|\ | | | | | | GDScript: Fix type highlighting
| * GDScript: Fix type highlightingDanil Alexeev2023-12-141-33/+50
| |
* | GDScript: Highlight code region commentsDanil Alexeev2024-01-251-24/+24
| |
* | Improve editor theme generation after the refactorYuri Sizov2024-01-171-1/+2
|/
* Change container_element_type to vector containerThaddeus Crews2023-12-051-1/+1
|
* Code Editor: Fix regression with using doc comments for code regionsDanil Alexeev2023-10-131-0/+2
|
* Highlight doc comments in a different colorDanil Alexeev2023-10-081-3/+13
|
* Merge pull request #82326 from adeneve/gdscript_dict_highlighter_fixRémi Verschelde2023-10-051-11/+25
|\ | | | | | | Fix for GDScriptHighlighter dictionaries as function arguments
| * Fix for gdscript_highlighter dictionaries as argumentsAndrew de Neve2023-10-051-11/+25
| | | | | | | | | | | | Fix for gdscript_highlighter. When passing a dictionary as a function argument, the dictionary values were being highlighted green as if they were types.
* | GDScript: Improve highlighting of typesDanil Alexeev2023-10-031-7/+15
|/
* GDScript: Add raw string literals (r-strings)Danil Alexeev2023-09-111-8/+35
|
* Fix highlighting of hex numbers with separatorsMewPurPur2023-08-281-3/+3
|
* GDScript: Highlight comment markers (`TODO`, `FIXME`, etc.)Danil Alexeev2023-08-071-35/+110
|
* Style: Harmonize header includes in modulesRémi Verschelde2023-06-151-0/+2
| | | | | | | | | | | | | | | | | | | | This applies our existing style guide, and adds a new rule to that style guide for modular components such as platform ports and modules: Includes from the platform port or module ("local" includes) should be listed first in their own block using relative paths, before Godot's "core" includes which use "absolute" (project folder relative) paths, and finally thirdparty includes. Includes in `#ifdef`s come after their relevant section, i.e. the overall structure is: - Local includes * Conditional local includes - Core includes * Conditional core includes - Thirdparty includes * Conditional thirdparty includes
* Make GDScript number highlighting stricterVolTer2023-03-011-5/+15
|
* Allow unicode identifier in GDScript syntax highlighterHaoyu Qiu2023-01-291-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".
* Stop highlighting node refs if they are invalid identifiersVolTer2023-01-031-16/+17
|
* Remove redundant Variant-types initializationsMarkus Sauermann2022-11-141-1/+1
|
* Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-1/+1
|
* GDScript: fix highlighting '.' after global class nameRune2022-10-111-10/+13
|
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-6/+6
| | | | change warnings=all to use /W4.
* Fix more highlighting bugsVolTer2022-10-021-26/+35
|
* Merge pull request #65074 from MewPurPur/booleans-highlighting-fixRémi Verschelde2022-09-271-27/+25
|\ | | | | | | Fix highlighting after value keywords
| * Add missing values to binary operator highlighter check exceptionsVolTer2022-08-311-27/+25
| |
* | Fixed a case for global function highlightingVolTer2022-08-311-3/+13
|/
* Follow-up fixes to number highlightingVolTer2022-08-291-14/+15
|
* Fix number highlightingVolTer2022-08-291-50/+56
|
* Merge pull request #64651 from MewPurPur/fix-globalfunc-highlightingRémi Verschelde2022-08-271-2/+28
|\ | | | | Add new highlighting color for `@GDScript` and `@GlobalScope` functions
| * Added highlighting color for GDScript and GlobalScope functionsVolTer2022-08-251-2/+28
| |
* | Tweaked StringName highlighting colorVolTer2022-08-251-2/+2
|/
* Replace Array return types with TypedArraykobewi2022-08-221-2/+2
|
* Merge pull request #63326 from MewPurPur/binary-highlighting-fixMax Hilbrunner2022-08-191-22/+47
|\ | | | | Fix highlighting of multiple operators
| * Improve binary operator highlightingVolTer2022-08-141-22/+47
| |
* | Improve script editor's light theme syntax colors for better readabilityHugo Locurcio2022-07-311-5/+5
|/ | | | | | | | New colors were hand-picked to have a better contrast rate, while still following the general coloring of the previous light theme. This improves the light theme's accessibility, especially in outdoor environments with direct sunlight.
* Highlight ^NodePath and &StringName differentlykobewi2022-07-191-3/+45
|
* GDScript: Support `%` in shorthand for `get_node`George Marques2022-05-271-2/+2
| | | | | | The `%` is used in scene unique nodes. Now `%` can also be used instead of `$` for the shorthand, besides being allowed generally anywhere in the path as the prefix for a node name.
* Add a new HashMap implementationreduz2022-05-121-3/+2
| | | | | | | | | | | | | | | | | Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-0/+1
|
* Cleanup and move char functions to the `char_utils.h` header.bruvzg2022-02-041-16/+4
|
* String: Add contains().Anilforextra2022-02-041-1/+1
|
* Improvments for SyntaxHighlightersPaulb232022-01-151-23/+73
| | | | | | | - 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-3/+3
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings