pub enum SemanticTokenType {
Keyword,
Type,
Variable,
String,
Number,
Parameter,
Operator,
Comment,
Namespace,
Function,
}Expand description
The standard LSP semantic token types this highlighter emits.
The variant order is the legend: SemanticTokenType::index is the position an editor uses
to decode the tokenType field, so adding a variant must only ever append.
Variants§
Keyword
Type
Variable
String
Number
Parameter
Bind / positional parameters ($1, :name, ?) and session variables ($name).
Operator
Comment
Namespace
Stage references (@stage, @~, @%table) — namespace is the closest standard type.
Function
Built-in function names, currently used for Snowflake Cortex / AISQL functions.
Implementations§
Source§impl SemanticTokenType
impl SemanticTokenType
Sourcepub const LEGEND: &'static [SemanticTokenType]
pub const LEGEND: &'static [SemanticTokenType]
The full legend, in index order. This is the contract an editor declares in its server
capabilities; the tokenType field of every emitted token indexes into this slice.
Trait Implementations§
Source§impl Clone for SemanticTokenType
impl Clone for SemanticTokenType
Source§fn clone(&self) -> SemanticTokenType
fn clone(&self) -> SemanticTokenType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SemanticTokenType
Source§impl Debug for SemanticTokenType
impl Debug for SemanticTokenType
impl Eq for SemanticTokenType
Source§impl Hash for SemanticTokenType
impl Hash for SemanticTokenType
Source§impl PartialEq for SemanticTokenType
impl PartialEq for SemanticTokenType
impl StructuralPartialEq for SemanticTokenType
Auto Trait Implementations§
impl Freeze for SemanticTokenType
impl RefUnwindSafe for SemanticTokenType
impl Send for SemanticTokenType
impl Sync for SemanticTokenType
impl Unpin for SemanticTokenType
impl UnsafeUnpin for SemanticTokenType
impl UnwindSafe for SemanticTokenType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more