From 1e118381f8276fe66a2cad02f1b9f4535e7e253e Mon Sep 17 00:00:00 2001 From: Reuh Date: Fri, 24 Dec 2021 00:05:53 +0100 Subject: [PATCH 1/2] Ignore shadowing warning in cancheck for temporary Candran variables --- bin/cancheck | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/cancheck b/bin/cancheck index d9d3dcc..1d3950f 100644 --- a/bin/cancheck +++ b/bin/cancheck @@ -181,6 +181,7 @@ local oldRunner = runner.new function runner.new(opts) -- Disable max line length checking (it is compiled code...) opts.max_line_length = false + opts.ignore = { "4[23]1/__CAN_.*" } return oldRunner(opts) end From 8d9a79c47dc7ad33bb2faaac6ff9df62e0a19cec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Fildadut?= Date: Sun, 22 Dec 2024 16:29:26 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c708f6b..76bd1bd 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,7 @@ Most editors should be able to use their existing Lua support for Candran code. * [sublime-candran](https://github.com/Reuh/sublime-candran) support the full Candran syntax * [SublimeLinter-cancheck-contrib](https://github.com/Reuh/SublimeLinter-contrib-cancheck) SublimeLinter plugin for Candran using ```cancheck``` * [SublimeLinter-candran-contrib](https://github.com/Reuh/SublimeLinter-contrib-candran) SublimeLinter plugin for Candran using ```canc -parse``` (only checks for syntaxic errors, no linting) +* **VS Code**: [vscode-candran](https://github.com/Reuh/vscode-candran) basic support for the Candran syntax * **Atom**: [language-candran](https://atom.io/packages/language-candran) support the full Candran syntax For linting, if your editor support [luacheck](https://github.com/luarocks/luacheck), you should be able to replace it with ```cancheck``` (in this repository ```bin/cancheck```, or installed automatically if Candran was installed using LuaRocks), which is a wrapper around luacheck that monkey-patch it to support Candran.