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

Look into semantic highlighting #11

Open
chrisjsewell opened this issue Mar 20, 2020 · 1 comment
Open

Look into semantic highlighting #11

chrisjsewell opened this issue Mar 20, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@chrisjsewell
Copy link
Member

VS Code just introduced this feature, which may be if use?

What is the difference between syntax and semantic highlighting?

Syntax highlighting colors the text based on lexical rules. In VS Code the lexical rules are expressed as regular expressions contained in a TextMate grammar.

Semantic highlighting enriches the syntax coloring based on symbol information from a language service that has the full understanding of the project. Based on this understanding each identifier gets colored & styled with the color of the symbol it resolves to. A constant variable name is rendered as constant throughout the file, not just in its declaration. Same for parameter names, property names, class names and so on.

@chrisjsewell chrisjsewell added the enhancement New feature or request label Mar 20, 2020
@choldgraf
Copy link
Member

whoah that sounds very cool. The only downside I'd see here is that some pages might end up looking like a rainbow vomited all over the page :-)

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

No branches or pull requests

2 participants