Classify tokens according to semantic-highlighting proposal
See original GitHub issueexport enum SemanticTokenTypes {
comment = 'comment',
keyword = 'keyword',
string = 'string',
number = 'number',
regexp = 'regexp',
operator = 'operator',
namespace = 'namespace',
type = 'type',
struct = 'struct',
class = 'class',
interface = 'interface',
enum = 'enum',
typeParameter = 'typeParameter',
function = 'function',
member = 'member',
property = 'property',
macro = 'macro',
variable = 'variable',
parameter = 'parameter',
label = 'label'
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Semantic Highlight Guide | Visual Studio Code Extension API
Semantic tokenization allows language servers to provide additional token information based on the language server's knowledge on how to resolve symbols in the ......
Read more >[semantic] proposals for new standard semantic token types
The new semantic token provider API comes with a list of standard token types and modifiers.
Read more >STViT: Semantic Tokens for Efficient Global and Local Vision ...
This paper proposes a novel semantic token ViTs for efficient global and local vision transformers, which reduce most FLOPS and achieve faster ...
Read more >How to manage your Design Tokens with Style Dictionary
Style Dictionary has an implicit classification of the tokens: ... According to the documentation “you can organize and name your style properties however ......
Read more >Chapter 2 - Tokens and Python's Lexical Structure - ICS, UCI
Learn the syntax and semantics of Python's five lexical categories ... characters and translates them into a sequence of tokens, classifying each by....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello guys. It seems the time has come. As I can see, there is a new semantic token api (in fact I’m not really sure how new it is (= ). Looks like quite a thing, I was waiting for it for a long time. I believe it’s much faster than decorations. Also it’ll keep highlighting in sync with themes. So looks like many problems are to be resolved. I’m planning to adopt semantic token api, meaning almost completely rewrite the extension. I’m quite busy at the moment, but will make it ASAP.
Are you planning to incorporate tree-sitters highlighting? https://tree-sitter.github.io/tree-sitter/syntax-highlighting There only seems to be a rust/c api