mirror of
https://github.com/elladunbar/tree-sitter-hy.git
synced 2025-11-05 14:59:55 -06:00
Added better macro highlighting
This commit is contained in:
parent
bec797778d
commit
550b048a4b
1 changed files with 12 additions and 3 deletions
|
|
@ -16,7 +16,7 @@
|
|||
((symbol) @constant.builtin
|
||||
(#any-of? @constant.builtin
|
||||
; https://docs.python.org/3/library/constants.html
|
||||
"NotImplemented" "Ellipsis" "quit" "exit" "copyright" "credits" "license"))
|
||||
"NotImplemented" "Ellipsis" "quit" "exit" "copyright" "credits" "license" "..."))
|
||||
|
||||
((symbol) @character.special
|
||||
(#eq? @character.special "_"))
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
.
|
||||
(list
|
||||
(symbol)* @parameter)
|
||||
(#eq? @keyword.function "defn"))
|
||||
(#any-of? @keyword.function "defn" "defmacro" "defmacro!" "defreader"))
|
||||
|
||||
(expression
|
||||
.
|
||||
|
|
@ -80,6 +80,15 @@
|
|||
"-" "-=" "!=" "*" "**" "**=" "*=" "/" "//" "//=" "/=" "&" "&=" "%" "%=" "^" "^=" "+" "+=" "<"
|
||||
"<<" "<<=" "<=" "<>" "=" ">" ">=" ">>" ">>=" "@" "@=" "|" "|="))
|
||||
|
||||
[
|
||||
"'"
|
||||
"`"
|
||||
"~"
|
||||
"~@"
|
||||
"#*"
|
||||
"#**"
|
||||
] @punctuation.special
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
|
|
@ -185,5 +194,5 @@
|
|||
(#any-of? @function.macro
|
||||
"do" "do-mac" "eval-and-compile" "eval-when-compile" "py" "pys" "pragma" "quote" "quasiquote"
|
||||
"unquote" "unquote-splice" "setv" "setx" "let" "global" "nonlocal" "del" "annotate" "deftype"
|
||||
"unpack-iterable" "unpack-mapping" "defmacro" "defreader" "get-macro" "local-macros" "export"
|
||||
"unpack-iterable" "unpack-mapping" "get-macro" "local-macros" "export"
|
||||
"get" "cut"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue