Add python code macros and spelling

This commit is contained in:
E Dunbar 2025-05-15 14:24:16 -05:00
parent ed44ef8755
commit 4be821f08d
6 changed files with 7754 additions and 7291 deletions

View file

@ -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
View file

@ -0,0 +1,3 @@
(py
(code) @injection.content
(#set! injection.language "python"))