mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -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
|
||||||
"}" @punctuation.special)
|
"}" @punctuation.special)
|
||||||
|
|
||||||
|
(type_conversion) @function.macro
|
||||||
|
|
||||||
["," "." ":" ";" (ellipsis)] @punctuation.delimiter
|
["," "." ":" ";" (ellipsis)] @punctuation.delimiter
|
||||||
|
|
||||||
;; Class definitions
|
;; Class definitions
|
||||||
|
|
|
||||||
|
|
@ -259,6 +259,8 @@
|
||||||
"{" @punctuation.special
|
"{" @punctuation.special
|
||||||
"}" @punctuation.special)
|
"}" @punctuation.special)
|
||||||
|
|
||||||
|
(type_conversion) @function.macro
|
||||||
|
|
||||||
["," "." ":" ";" (ellipsis)] @punctuation.delimiter
|
["," "." ":" ";" (ellipsis)] @punctuation.delimiter
|
||||||
|
|
||||||
;; Error
|
;; Error
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ match command.split():
|
||||||
case ["drop", *objects]: pass
|
case ["drop", *objects]: pass
|
||||||
case _:
|
case _:
|
||||||
print(f"Sorry, I couldn't understand {command!r}")
|
print(f"Sorry, I couldn't understand {command!r}")
|
||||||
|
# ^^ @function.macro
|
||||||
|
|
||||||
match command.split():
|
match command.split():
|
||||||
# ^ conditional
|
# ^ conditional
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue