aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-05-13 12:50:40 +0200
committerChristian Clason <c.clason@uni-graz.at>2023-05-15 14:13:31 +0200
commitc97de026e357dec0bed034af3b54abf10966200b (patch)
tree18f4163a2c81f684c2fa4114bebdccf056038643
parent0dbed7132b559b3e8419c0e59ca553e5921d6a90 (diff)
downloadrneovim-c97de026e357dec0bed034af3b54abf10966200b.tar.gz
rneovim-c97de026e357dec0bed034af3b54abf10966200b.tar.bz2
rneovim-c97de026e357dec0bed034af3b54abf10966200b.zip
fix(treesitter): update vimdoc and vimscript queries
-rw-r--r--runtime/queries/vim/highlights.scm2
-rw-r--r--runtime/queries/vimdoc/highlights.scm8
2 files changed, 5 insertions, 5 deletions
diff --git a/runtime/queries/vim/highlights.scm b/runtime/queries/vim/highlights.scm
index ce25b13b9f..09188ddb68 100644
--- a/runtime/queries/vim/highlights.scm
+++ b/runtime/queries/vim/highlights.scm
@@ -275,7 +275,7 @@
; Options
((set_value) @number
- (#match? @number "^[0-9]+(\.[0-9]+)?$"))
+ (#lua-match? @number "^[%d]+(%.[%d]+)?$"))
(inv_option "!" @operator)
(set_item "?" @operator)
diff --git a/runtime/queries/vimdoc/highlights.scm b/runtime/queries/vimdoc/highlights.scm
index c0d88301bc..e0dce49b2a 100644
--- a/runtime/queries/vimdoc/highlights.scm
+++ b/runtime/queries/vimdoc/highlights.scm
@@ -1,7 +1,7 @@
-(h1) @text.title
-(h2) @text.title
-(h3) @text.title
-(column_heading) @text.title
+(h1) @text.title.1
+(h2) @text.title.2
+(h3) @text.title.3
+(column_heading) @text.title.4
(column_heading
"~" @conceal (#set! conceal ""))
(tag