aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/nvim-treesitter/parsers.lua1
-rw-r--r--queries/scheme/highlights.scm14
2 files changed, 8 insertions, 7 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua
index dfa6373b5..58c08c351 100644
--- a/lua/nvim-treesitter/parsers.lua
+++ b/lua/nvim-treesitter/parsers.lua
@@ -46,6 +46,7 @@ local list = setmetatable({}, {
list.scheme = {
install_info = {
url = "https://github.com/6cdh/tree-sitter-scheme",
+ branch = "main",
files = { "src/parser.c" },
},
maintainers = { "@6cdh" },
diff --git a/queries/scheme/highlights.scm b/queries/scheme/highlights.scm
index f03896817..7798eff7c 100644
--- a/queries/scheme/highlights.scm
+++ b/queries/scheme/highlights.scm
@@ -6,7 +6,7 @@
(character) @character
(boolean) @boolean
(string) @string
-[(comment)] @comment
+(comment) @comment
;; highlight for datum comment
;; copied from ../clojure/highlights.scm
@@ -38,20 +38,20 @@
(list
.
- (symbol) @f
+ (symbol) @_f
.
(list
(symbol) @variable)
- (#eq? @f "lambda"))
+ (#eq? @_f "lambda"))
(list
.
- (symbol) @f
+ (symbol) @_f
.
(list
(list
(symbol) @variable))
- (#any-of? @f
+ (#any-of? @_f
"let" "let*" "let-syntax" "let-values" "let*-values" "letrec" "letrec*" "letrec-syntax"))
;; operators
@@ -86,8 +86,8 @@
(list
.
- (symbol) @f
- (#eq? @f "quote")) @symbol
+ (symbol) @_f
+ (#eq? @_f "quote")) @symbol
;; library