mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(python,starlark): highlight type conversions as @function.macro
This commit is contained in:
parent
5ab25d8a1f
commit
01b42a1a57
3 changed files with 5 additions and 0 deletions
|
|
@ -304,6 +304,8 @@
|
|||
"{" @punctuation.special
|
||||
"}" @punctuation.special)
|
||||
|
||||
(type_conversion) @function.macro
|
||||
|
||||
["," "." ":" ";" (ellipsis)] @punctuation.delimiter
|
||||
|
||||
;; Class definitions
|
||||
|
|
|
|||
|
|
@ -259,6 +259,8 @@
|
|||
"{" @punctuation.special
|
||||
"}" @punctuation.special)
|
||||
|
||||
(type_conversion) @function.macro
|
||||
|
||||
["," "." ":" ";" (ellipsis)] @punctuation.delimiter
|
||||
|
||||
;; Error
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue