mirror of
https://github.com/elladunbar/tree-sitter-hy.git
synced 2025-11-05 14:59:55 -06:00
Add python code macros and spelling
This commit is contained in:
parent
ed44ef8755
commit
4be821f08d
6 changed files with 7754 additions and 7291 deletions
|
|
@ -126,6 +126,12 @@
|
|||
(discard)
|
||||
] @comment
|
||||
|
||||
[
|
||||
(string)
|
||||
(bracket_string)
|
||||
(comment)
|
||||
] @spell
|
||||
|
||||
; Keywords
|
||||
(expression
|
||||
.
|
||||
|
|
@ -278,11 +284,18 @@
|
|||
.
|
||||
(symbol) @function.macro
|
||||
(#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" "with" "get-macro" "local-macros" "export" "get" "cut"
|
||||
"do" "do-mac" "eval-and-compile" "eval-when-compile" "pragma" "quote" "quasiquote" "unquote"
|
||||
"unquote-splice" "setv" "setx" "let" "global" "nonlocal" "del" "annotate" "deftype" "."
|
||||
"unpack-iterable" "unpack-mapping" "with" "get-macro" "local-macros" "export" "get" "cut"
|
||||
"assert"))
|
||||
|
||||
(py
|
||||
.
|
||||
[
|
||||
"py"
|
||||
"pys"
|
||||
] @function.macro)
|
||||
|
||||
; Tokens
|
||||
((symbol) @operator
|
||||
(#any-of? @operator
|
||||
|
|
|
|||
3
queries/injections.scm
Normal file
3
queries/injections.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(py
|
||||
(code) @injection.content
|
||||
(#set! injection.language "python"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue