mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Update completion snippets
This commit is contained in:
parent
5ac1c85082
commit
08f7a4ebbd
6 changed files with 8 additions and 8 deletions
|
@ -85,5 +85,5 @@ items = Group(
|
||||||
def items_completer(ast_node, match_variables):
|
def items_completer(ast_node, match_variables):
|
||||||
yield Completion(
|
yield Completion(
|
||||||
"items", CompletionItemKind.Snippet,
|
"items", CompletionItemKind.Snippet,
|
||||||
snippet="items [$0];"
|
snippet="items [$0]"
|
||||||
)
|
)
|
||||||
|
|
|
@ -79,7 +79,7 @@ suffixes = create_node("suffixes", "suffix")
|
||||||
matches=new_statement_patterns,
|
matches=new_statement_patterns,
|
||||||
)
|
)
|
||||||
def file_filter_completer(ast_node, match_variables):
|
def file_filter_completer(ast_node, match_variables):
|
||||||
yield Completion("mime-types", CompletionItemKind.Snippet, snippet="mime-types [\"$0\"];")
|
yield Completion("mime-types", CompletionItemKind.Snippet, snippet="mime-types [\"$0\"]")
|
||||||
yield Completion("patterns", CompletionItemKind.Snippet, snippet="patterns [\"$0\"];")
|
yield Completion("patterns", CompletionItemKind.Snippet, snippet="patterns [\"$0\"]")
|
||||||
yield Completion("suffixes", CompletionItemKind.Snippet, snippet="suffixes [\"$0\"];")
|
yield Completion("suffixes", CompletionItemKind.Snippet, snippet="suffixes [\"$0\"]")
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,7 @@ def menu_content_completer(ast_node, match_variables):
|
||||||
)
|
)
|
||||||
yield Completion(
|
yield Completion(
|
||||||
"item (shorthand)", CompletionItemKind.Snippet,
|
"item (shorthand)", CompletionItemKind.Snippet,
|
||||||
snippet='item (_("${1:Label}"), "${2:action-name}", "${3:icon-name}");'
|
snippet='item (_("${1:Label}"), "${2:action-name}", "${3:icon-name}")'
|
||||||
)
|
)
|
||||||
|
|
||||||
yield Completion(
|
yield Completion(
|
||||||
|
|
|
@ -81,4 +81,4 @@ widgets = Group(
|
||||||
matches=new_statement_patterns,
|
matches=new_statement_patterns,
|
||||||
)
|
)
|
||||||
def size_group_completer(ast_node, match_variables):
|
def size_group_completer(ast_node, match_variables):
|
||||||
yield Completion("widgets", CompletionItemKind.Snippet, snippet="widgets [$0];")
|
yield Completion("widgets", CompletionItemKind.Snippet, snippet="widgets [$0]")
|
||||||
|
|
|
@ -81,5 +81,5 @@ strings = Group(
|
||||||
def strings_completer(ast_node, match_variables):
|
def strings_completer(ast_node, match_variables):
|
||||||
yield Completion(
|
yield Completion(
|
||||||
"strings", CompletionItemKind.Snippet,
|
"strings", CompletionItemKind.Snippet,
|
||||||
snippet="strings [$0];"
|
snippet="strings [$0]"
|
||||||
)
|
)
|
||||||
|
|
|
@ -67,5 +67,5 @@ styles = Group(
|
||||||
matches=new_statement_patterns,
|
matches=new_statement_patterns,
|
||||||
)
|
)
|
||||||
def style_completer(ast_node, match_variables):
|
def style_completer(ast_node, match_variables):
|
||||||
yield Completion("styles", CompletionItemKind.Keyword, snippet="styles [\"$0\"];")
|
yield Completion("styles", CompletionItemKind.Keyword, snippet="styles [\"$0\"]")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue