diff options
| author | maxxnino <34153891+maxxnino@users.noreply.github.com> | 2021-10-21 14:04:36 +0900 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-10-21 22:10:55 +0200 |
| commit | e3e43c479ec5d8c4c1382e12c03ed88030dbd368 (patch) | |
| tree | b99d96beb42392398f14a70f77d57685ccf21e1c /lua/nvim-treesitter/shell_command_selectors.lua | |
| parent | 47a9e6dda92245dd92f44c56b65e7e1f608caa0e (diff) | |
Add zig as compiler for parser
Diffstat (limited to 'lua/nvim-treesitter/shell_command_selectors.lua')
| -rw-r--r-- | lua/nvim-treesitter/shell_command_selectors.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua index 7acd91d2..ee784312 100644 --- a/lua/nvim-treesitter/shell_command_selectors.lua +++ b/lua/nvim-treesitter/shell_command_selectors.lua @@ -65,6 +65,17 @@ function M.select_compiler_args(repo, compiler) "-Os", "/LD", } + elseif string.match(compiler, "zig$") or string.match(compiler, "zig.exe$") then + return { + "c++", + "-o", + "parser.so", + repo.files, + "-lc", + "-Isrc", + "-shared", + "-Os", + } else local args = { "-o", |
