mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
language: Add expression literals
Add expression literals, so you can set properties of type Gtk.Expression.
This commit is contained in:
parent
a6d57cebec
commit
02344139c2
29 changed files with 268 additions and 21 deletions
|
@ -177,6 +177,15 @@ def property_completer(lsp, ast_node, match_variables):
|
|||
docs=prop.doc,
|
||||
detail=prop.detail,
|
||||
)
|
||||
elif prop.type.full_name == "Gtk.Expression":
|
||||
yield Completion(
|
||||
prop_name,
|
||||
CompletionItemKind.Property,
|
||||
sort_text=f"0 {prop_name}",
|
||||
snippet=f"{prop_name}: expr $0;",
|
||||
docs=prop.doc,
|
||||
detail=prop.detail,
|
||||
)
|
||||
else:
|
||||
yield Completion(
|
||||
prop_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue