Unnamed repository; edit this file 'description' to name the repository.
add lua doc comments to comment-tokens list (#15595)
`---` is the conventional documentation comment prefix for lua, used by EmmyLua and lua-language-server.
Taylor C. Richberger 4 weeks ago
parent 6c48d18 · commit d4f422c
-rw-r--r--languages.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index a0d06a54..6b1bb824 100644
--- a/languages.toml
+++ b/languages.toml
@@ -1596,7 +1596,7 @@ scope = "source.lua"
file-types = ["lua", "rockspec"]
shebangs = ["lua", "luajit"]
roots = [".luarc.json", ".luacheckrc", ".stylua.toml", "selene.toml", ".git"]
-comment-token = "--"
+comment-tokens = ["--", "---"]
block-comment-tokens = { start = "--[[", end = "--]]" }
indent = { tab-width = 2, unit = " " }
language-servers = [ "lua-language-server" ]