mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-07-07 01:29:26 -04:00
completions: Simplify token matching code
This commit is contained in:
parent
c7a61d2227
commit
610d9c85a5
4 changed files with 27 additions and 24 deletions
|
@ -153,7 +153,7 @@ def complete_mark(_ctx: CompletionContext):
|
|||
|
||||
@completer(
|
||||
applies_in=[ExtScaleMark],
|
||||
matches=[[(TokenType.NUMBER, None), (TokenType.PUNCTUATION, ",")]],
|
||||
matches=[[TokenType.NUMBER, ","]],
|
||||
)
|
||||
def complete_mark_position(ctx: CompletionContext):
|
||||
gir = ctx.ast_node.root.gir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue