From 7fffab173c8dd2b0c549efbfb89e1b9dd9e98709 Mon Sep 17 00:00:00 2001 From: 6cdh Date: Sat, 9 Apr 2022 20:20:53 +0800 Subject: Fix nvim-treesitter CI --- lua/nvim-treesitter/parsers.lua | 1 + queries/scheme/highlights.scm | 14 +++++++------- 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 -- cgit v1.2.3-70-g09d2