aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2026-05-27 18:33:52 +0200
committerChristian Clason <ch.clason+github@icloud.com>2026-07-18 22:23:55 +0200
commitafa0cb8669d8c1b1873bda2915bbe5c104a0fde4 (patch)
tree4d92c52de70140f0d2b4da871fd6439406857995
parentfeat(gnuplot)!: update parser and queries (diff)
downloadnvim-treesitter-afa0cb8669d8c1b1873bda2915bbe5c104a0fde4.tar
nvim-treesitter-afa0cb8669d8c1b1873bda2915bbe5c104a0fde4.tar.gz
nvim-treesitter-afa0cb8669d8c1b1873bda2915bbe5c104a0fde4.tar.bz2
nvim-treesitter-afa0cb8669d8c1b1873bda2915bbe5c104a0fde4.tar.lz
nvim-treesitter-afa0cb8669d8c1b1873bda2915bbe5c104a0fde4.tar.xz
nvim-treesitter-afa0cb8669d8c1b1873bda2915bbe5c104a0fde4.tar.zst
nvim-treesitter-afa0cb8669d8c1b1873bda2915bbe5c104a0fde4.zip
feat(c3)!: update parser and queries
Breaking change: add `expression` supertype
-rw-r--r--lua/nvim-treesitter/parsers.lua2
-rw-r--r--runtime/queries/c3/indents.scm6
2 files changed, 4 insertions, 4 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua
index 60dbf70b3..113ac6800 100644
--- a/lua/nvim-treesitter/parsers.lua
+++ b/lua/nvim-treesitter/parsers.lua
@@ -166,7 +166,7 @@ return {
},
c3 = {
install_info = {
- revision = '9b4eebce4e8b367acb9d5267f04358d5888b3829',
+ revision = '1c6a95234c62130763ed1c479f958b74fdbfdb2a',
url = 'https://github.com/c3lang/tree-sitter-c3',
},
maintainers = { '@cbuttner' },
diff --git a/runtime/queries/c3/indents.scm b/runtime/queries/c3/indents.scm
index 61758ce32..7be7c88d6 100644
--- a/runtime/queries/c3/indents.scm
+++ b/runtime/queries/c3/indents.scm
@@ -23,13 +23,13 @@
(expr_stmt
";" @indent.end) @indent.begin
-(declaration
+(declaration_stmt
";" @indent.end) @indent.begin
-(const_declaration
+(return_stmt
";" @indent.end) @indent.begin
-(return_stmt
+(global_declaration
";" @indent.end) @indent.begin
(faultdef_declaration