mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
lsp: Add missing semantic highlight
This commit is contained in:
parent
62f74178f7
commit
a9cb423b3b
1 changed files with 8 additions and 0 deletions
|
@ -68,6 +68,14 @@ class ExtScaleMark(AstNode):
|
|||
self.label.string if self.label else None,
|
||||
)
|
||||
|
||||
def get_semantic_tokens(self) -> T.Iterator[SemanticToken]:
|
||||
if range := self.ranges["position"]:
|
||||
yield SemanticToken(
|
||||
range.start,
|
||||
range.end,
|
||||
SemanticTokenType.EnumMember,
|
||||
)
|
||||
|
||||
@docs("position")
|
||||
def position_docs(self) -> T.Optional[str]:
|
||||
if member := self.root.gir.get_type("PositionType", "Gtk").members.get(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue