feat(python,starlark): highlight type conversions as @function.macro

This commit is contained in:
Amaan Qureshi 2023-04-24 00:30:18 -04:00
parent 5ab25d8a1f
commit 01b42a1a57
3 changed files with 5 additions and 0 deletions

View file

@ -304,6 +304,8 @@
"{" @punctuation.special
"}" @punctuation.special)
(type_conversion) @function.macro
["," "." ":" ";" (ellipsis)] @punctuation.delimiter
;; Class definitions

View file

@ -259,6 +259,8 @@
"{" @punctuation.special
"}" @punctuation.special)
(type_conversion) @function.macro
["," "." ":" ";" (ellipsis)] @punctuation.delimiter
;; Error

View file

@ -29,6 +29,7 @@ match command.split():
case ["drop", *objects]: pass
case _:
print(f"Sorry, I couldn't understand {command!r}")
# ^^ @function.macro
match command.split():
# ^ conditional