Skip to content

Commit ef20fb5

Browse files
committed
feat(treesitter): add preliminary support for zig
Introduce node types used in zig for treesitter based indenting
1 parent dcf9a4e commit ef20fb5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

lua/hlchunk/utils/ts_node_type/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ local M = {}
33
M.cpp = require("hlchunk.utils.ts_node_type.cpp")
44
M.lua = require("hlchunk.utils.ts_node_type.lua")
55
M.rust = require("hlchunk.utils.ts_node_type.rust")
6+
M.zig = require("hlchunk.utils.ts_node_type.zig")
67
M.default = {
78
"class",
89
"^func",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
return {
2+
["Block"] = true,
3+
["ContainerDecl"] = true,
4+
["FnCallArguments"] = true,
5+
["IfStatement"] = true,
6+
["IfExpr"] = true,
7+
["SwitchExpr"] = true,
8+
["LoopStatement"] = true,
9+
["FieldInit"] = true,
10+
["InitList"] = true,
11+
["SuffixExpr"] = true,
12+
["BinaryExpr"] = true,
13+
}

0 commit comments

Comments
 (0)