diff options
author | Linda_pp <rhysd@users.noreply.github.com> | 2022-02-04 16:29:28 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-04 16:29:28 +0900 |
commit | 0d529d9b948d21065789c5670500cbfba5386f6f (patch) | |
tree | cc5b73feea8a88bc0c8b8a6f7e829b2f464fb29a /ale_linters | |
parent | d1e2aaf85dc81bad223065eec474d9f090fec70e (diff) | |
download | ale-0d529d9b948d21065789c5670500cbfba5386f6f.zip |
Add `naga` linter for WGSL support (#4047)
* Add WGSL support using `naga` command
* Add documents for wgsl
* Add test for `naga` linter
* Separate naga handler callback to hanlder/naga.vim
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/wgsl/naga.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ale_linters/wgsl/naga.vim b/ale_linters/wgsl/naga.vim new file mode 100644 index 00000000..2816751b --- /dev/null +++ b/ale_linters/wgsl/naga.vim @@ -0,0 +1,12 @@ +" Author: rhysd <https://github.com/rhysd> +" Description: naga-cli linter for WGSL syntax. + +call ale#Set('wgsl_naga_executable', 'naga') + +call ale#linter#Define('wgsl', { +\ 'name': 'naga', +\ 'executable': {b -> ale#Var(b, 'wgsl_naga_executable')}, +\ 'output_stream': 'stderr', +\ 'command': {b -> '%e --stdin-file-path %s'}, +\ 'callback': 'ale#handlers#naga#Handle', +\}) |