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

Feat: Implement basic semantic highlighting for functions and variables #8

Merged
merged 4 commits into from
Sep 29, 2023

Conversation

WilsonZiweiWang
Copy link
Collaborator

@WilsonZiweiWang WilsonZiweiWang commented Sep 28, 2023

  1. Match function and variable declarations
  2. Match function and variable references
  3. References are matched only if they are declared first
  4. Currently it doesn't care about the scope, tokens are generated as long as they are matched by the regex

1. Match function and variable declarations
2. Match function and variable references
3. References are matched only if they are declared first
4. Currently it doesn't about the scope, tokens are generated as long as they are matched by the regex
@WilsonZiweiWang WilsonZiweiWang added the enhancement New feature or request label Sep 28, 2023
@WilsonZiweiWang WilsonZiweiWang self-assigned this Sep 28, 2023
@WilsonZiweiWang WilsonZiweiWang marked this pull request as draft September 28, 2023 18:33
@WilsonZiweiWang
Copy link
Collaborator Author

Example of results:
image
image
image
image

@WilsonZiweiWang WilsonZiweiWang marked this pull request as ready for review September 28, 2023 18:48
@idillon-sfl
Copy link
Member

Digits are also not supported as first characters in function and variable names

1. Remove digits as possible first character and hypen in the function and variable names
2. Enable grammars for numeric and square brackets in variable expansion syntax
@WilsonZiweiWang
Copy link
Collaborator Author

Digits are also not supported as first characters in function and variable names

Removed digits as possible first character and hyphen in the function and variable names

@WilsonZiweiWang WilsonZiweiWang merged commit ed193fe into staging Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants