aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsogaiu <983021772@users.noreply.github.com>2023-04-23 16:36:25 +0900
committerAmaan Qureshi <amaanq12@gmail.com>2023-04-30 22:06:17 -0400
commit8db7eeba9ddf3dc5ae5ae5a3fe0cf90977020f9d (patch)
tree8346d970b1ebfee7f6f0e6446f1a02a9517db260
parentfeat: add janet_simple (diff)
downloadnvim-treesitter-8db7eeba9ddf3dc5ae5ae5a3fe0cf90977020f9d.tar
nvim-treesitter-8db7eeba9ddf3dc5ae5ae5a3fe0cf90977020f9d.tar.gz
nvim-treesitter-8db7eeba9ddf3dc5ae5ae5a3fe0cf90977020f9d.tar.bz2
nvim-treesitter-8db7eeba9ddf3dc5ae5ae5a3fe0cf90977020f9d.tar.lz
nvim-treesitter-8db7eeba9ddf3dc5ae5ae5a3fe0cf90977020f9d.tar.xz
nvim-treesitter-8db7eeba9ddf3dc5ae5ae5a3fe0cf90977020f9d.tar.zst
nvim-treesitter-8db7eeba9ddf3dc5ae5ae5a3fe0cf90977020f9d.zip
Use 2 semicolons for better editor interop
-rw-r--r--queries/janet_simple/highlights.scm30
1 files changed, 13 insertions, 17 deletions
diff --git a/queries/janet_simple/highlights.scm b/queries/janet_simple/highlights.scm
index 5788dd3ad..401433d08 100644
--- a/queries/janet_simple/highlights.scm
+++ b/queries/janet_simple/highlights.scm
@@ -33,10 +33,10 @@
;; >> Symbols
-; General symbol highlighting
+;; General symbol highlighting
(sym_lit) @variable
-; General function calls
+;; General function calls
(par_tup_lit
.
(sym_lit) @function.call)
@@ -45,18 +45,18 @@
.
(sym_lit) @function.call)
-; Quoted symbols
+;; Quoted symbols
(quote_lit
(sym_lit) @symbol)
(qq_lit
(sym_lit) @symbol)
-; Dynamic variables
+;; Dynamic variables
((sym_lit) @variable.builtin
(#lua-match? @variable.builtin "^[*].+[*]$"))
-; Operators
+;; Operators
((sym_lit) @operator
(#any-of? @operator
"%" "*" "+" "-" "/"
@@ -66,7 +66,7 @@
(#any-of? @keyword.operator
"not" "not=" "and" "or"))
-; Definition
+;; Definition
((sym_lit) @keyword
(#any-of? @keyword
"def" "def-" "defdyn" "defglobal" "defmacro" "defmacro-"
@@ -75,11 +75,11 @@
((sym_lit) @keyword.function
(#match? @keyword.function "^(defn|defn-|fn|varfn)$"))
-; Comment
+;; Comment
((sym_lit) @comment
(#any-of? @comment "comment"))
-; Conditionals
+;; Conditionals
((sym_lit) @conditional
(#any-of? @conditional
"case" "cond"))
@@ -90,21 +90,20 @@
((sym_lit) @conditional
(#match? @conditional "^when(\\-.*)?$"))
-; Repeats
+;; Repeats
((sym_lit) @repeat
(#any-of? @repeat
"for" "forever" "forv" "loop" "repeat" "while"))
-; Exception
+;; Exception
((sym_lit) @exception
(#any-of? @exception "error" "errorf" "try"))
-; Includes
+;; Includes
((sym_lit) @include
(#any-of? @include "import" "require" "use"))
-; Builtin macros
-;; TODO: Do all these items belong here?
+;; Builtin macros
((sym_lit) @function.macro
(#any-of? @function.macro
"++" "+=" "--"
@@ -137,10 +136,7 @@
"when" "when-let" "when-with"
"with" "with-dyns" "with-syms" "with-vars"))
-((sym_lit) @function.macro
- (#match? @function.macro "^with\\-.*$"))
-
-; All builtin functions
+;; All builtin functions
((sym_lit) @function.builtin
(#any-of? @function.builtin
"*" "+" "-" "/"