Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some $ node path shorthand regex bugs in syntax highlighting #340

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

chybby
Copy link
Contributor

@chybby chybby commented Apr 5, 2022

The regex now supports:

  • Unquoted node paths with numbers eg. $Node2D/Area2D
  • Single-quoted node paths eg. $'Node/Sprite'
  • Quoted node paths with spaces eg. $"Node/Main Menu"

Old regex syntax diagram:
chrome_OsBUvsPq1a

New regex syntax diagram:
chrome_Exuu49GF8Z

The regex now supports:
  - Unquoted node paths with numbers eg. $Node2D/Area2D
  - Single-quoted node paths eg. $'Node/Sprite'
  - Quoted node paths with spaces eg. $"Node/Main Menu"
@Calinou Calinou added the bug label Apr 5, 2022
@Calinou
Copy link
Member

Calinou commented Apr 5, 2022

Out of curiosity, how did you generate the regex diagrams? These look great 🙂

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Congratulations for your first merged pull request 🎉

@Calinou Calinou changed the title Fix some $ node path shorthand regex bugs Fix some $ node path shorthand regex bugs in syntax highlighting Apr 5, 2022
@Calinou Calinou merged commit 854ec42 into godotengine:master Apr 5, 2022
@chybby
Copy link
Contributor Author

chybby commented Apr 6, 2022

Out of curiosity, how did you generate the regex diagrams? These look great 🙂

I used https://extendsclass.com/regex-tester.html#ruby which is mentioned in the README in this folder so it was new to me too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants