wawandco / visho

VSCode extension to boost your Plush productivity to the moon.
https://marketplace.visualstudio.com/items?itemName=wawandco-tools.visho
MIT License
7 stars 0 forks source link

[FIX](tmLanguage): fixing regex for form_for #6

Closed YanDeLeon closed 1 year ago

YanDeLeon commented 1 year ago

What is being done in this PR?

Added some tweaks for the regular expressions we use to capture keywords, variable names and function names

What are the main choices made to get to this solution?

Included the escaping of dashes and underscores. This way we can set variable name like example_variable and the extension will recognize this as a variable or name function.

List the manual test cases you've covered before sending this PR:

Example:

  • GIVEN the user types the form_for() statement THEN the extension highlights the hole name and set it as a Plush Keyword ✅