Skip to content

Syntax highlighting changes - #515

Merged
DaelonSuzuka merged 1 commit into
godotengine:masterfrom
ryanabx-contrib:syntax/highlighting-changes
Oct 22, 2023
Merged

Syntax highlighting changes#515
DaelonSuzuka merged 1 commit into
godotengine:masterfrom
ryanabx-contrib:syntax/highlighting-changes

Conversation

@ryanabx

@ryanabx ryanabx commented Oct 16, 2023

Copy link
Copy Markdown
Contributor

NOTE: This is my first time working with regular expressions, so please let me know if I've made a mistake with my added regular expressions!

Before:
image

After:
image

@atirutw

atirutw commented Oct 16, 2023

Copy link
Copy Markdown

The new annotation should probably be in a separate PR that depends on godotengine/godot#82987 being merged. The other two seems great for consistency.

@ryanabx
ryanabx force-pushed the syntax/highlighting-changes branch 2 times, most recently from 956dc99 to 23557f0 Compare October 16, 2023 13:10
@DaelonSuzuka

DaelonSuzuka commented Oct 16, 2023

Copy link
Copy Markdown
Collaborator

The new annotation should probably be in a separate PR that depends on godotengine/godot#82987 being merged.

No, there's no reason to push that out to another PR. Adding and removing annotations is a trivial change, and the linked engine PR seems quite likely to get merged.

The grammar in this extension is explicitly attempting to be a superset of all versions of GDScript, so adding support for future features is just as valid as maintaining support for Godot 3 features or features that were deprecated and removed.

@ryanabx
ryanabx force-pushed the syntax/highlighting-changes branch from 23557f0 to 00a7f9c Compare October 19, 2023 19:44
Better syntax highlighting for properties. Class variables used to be unhighlighted and are now highlighted properly as `variable.other.gdscript`, properties are still highlighted as `variable.other.property.gdscript`
@ryanabx
ryanabx force-pushed the syntax/highlighting-changes branch from 00a7f9c to 211fbf3 Compare October 19, 2023 19:45
@DaelonSuzuka

Copy link
Copy Markdown
Collaborator

Sorry for the delay. Everything looks fine to me.

@DaelonSuzuka
DaelonSuzuka merged commit dcbfcb4 into godotengine:master Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants