Documentation ¶
Overview ¶
The semtok package provides an encoder for LSP's semantic tokens.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TokenType ¶
type TokenType string
const ( // These are the tokens defined by LSP 3.17, but a client is // free to send its own set; any tokens that the server emits // that are not in this set are simply not encoded in the bitfield. TokNamespace TokenType = "namespace" TokType TokenType = "type" TokInterface TokenType = "interface" TokTypeParam TokenType = "typeParameter" TokParameter TokenType = "parameter" TokVariable TokenType = "variable" TokMethod TokenType = "method" TokFunction TokenType = "function" TokKeyword TokenType = "keyword" TokComment TokenType = "comment" TokString TokenType = "string" TokNumber TokenType = "number" TokOperator TokenType = "operator" TokMacro TokenType = "macro" // for templates // not part of LSP 3.17 (even though JS has labels) // https://github.com/microsoft/vscode-languageserver-node/issues/1422 TokLabel TokenType = "label" )
Click to show internal directories.
Click to hide internal directories.