mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
completions: Add object value completions
For object properties, add completions for named objects in the blueprint and for matching classes in imported namespaces. Also add null and bind.
This commit is contained in:
parent
2204eaf92d
commit
3cdc3a159c
3 changed files with 74 additions and 20 deletions
|
@ -26,7 +26,11 @@ from .values import ArrayValue, ExprValue, ObjectValue, Value
|
|||
|
||||
class Property(AstNode):
|
||||
grammar = Statement(
|
||||
UseIdent("name"), ":", AnyOf(Binding, ExprValue, ObjectValue, Value, ArrayValue)
|
||||
UseIdent("name"),
|
||||
":",
|
||||
AnyOf(Binding, ExprValue, ObjectValue, Value, ArrayValue).expected(
|
||||
"property value"
|
||||
),
|
||||
)
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue