mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-05 16:09:07 -04:00
Use array-like syntax for styles, file filters
These are now pseudo-properties with brackets around the array items, for consistency with more familiar languages.
This commit is contained in:
parent
ebfa72d94f
commit
f8478adf3a
5 changed files with 15 additions and 10 deletions
|
@ -43,7 +43,9 @@ class StyleClass(AstNode):
|
|||
styles = Group(
|
||||
Styles,
|
||||
Statement(
|
||||
Keyword("style"),
|
||||
Keyword("styles"),
|
||||
Op(":"),
|
||||
OpenBracket(),
|
||||
Delimited(
|
||||
Group(
|
||||
StyleClass,
|
||||
|
@ -51,6 +53,7 @@ styles = Group(
|
|||
),
|
||||
Comma(),
|
||||
),
|
||||
CloseBracket(),
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -60,5 +63,5 @@ styles = Group(
|
|||
matches=new_statement_patterns,
|
||||
)
|
||||
def style_completer(ast_node, match_variables):
|
||||
yield Completion("style", CompletionItemKind.Keyword, snippet="style \"$0\";")
|
||||
yield Completion("styles", CompletionItemKind.Keyword, snippet="styles: [\"$0\"];")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue