mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
lsp: Add semantic tokens for flag members
This commit is contained in:
parent
f6d05be10b
commit
e5fba8f3c7
1 changed files with 7 additions and 0 deletions
|
@ -211,6 +211,13 @@ class Flag(AstNode):
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def get_semantic_tokens(self) -> T.Iterator[SemanticToken]:
|
||||||
|
yield SemanticToken(
|
||||||
|
self.group.tokens["value"].start,
|
||||||
|
self.group.tokens["value"].end,
|
||||||
|
SemanticTokenType.EnumMember,
|
||||||
|
)
|
||||||
|
|
||||||
@docs()
|
@docs()
|
||||||
def docs(self):
|
def docs(self):
|
||||||
type = self.context[ValueTypeCtx].value_type
|
type = self.context[ValueTypeCtx].value_type
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue