summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCppCXY <812125110@qq.com>2023-12-11 11:19:13 +0800
committerCppCXY <812125110@qq.com>2023-12-11 11:19:13 +0800
commitdab59d5c9315b67b2032ebffa5c5f728be3c09f6 (patch)
tree0ee8a8c7e37c4ff24da291891c5516cf3195be19
parentbd89d294185c09e79428e7e8254ecca26c34406a (diff)
downloadlua-language-server-dab59d5c9315b67b2032ebffa5c5f728be3c09f6.zip
support c like comments
m---------3rd/EmmyLuaCodeStyle0
-rw-r--r--script/provider/formatting.lua5
2 files changed, 5 insertions, 0 deletions
diff --git a/3rd/EmmyLuaCodeStyle b/3rd/EmmyLuaCodeStyle
-Subproject 7b94e88206d9a6a1f0281a9338e1b264a810e7e
+Subproject ebcd76a256ad5b36b9645ae89ca17360bafbdc2
diff --git a/script/provider/formatting.lua b/script/provider/formatting.lua
index 58ac6f81..ea94db08 100644
--- a/script/provider/formatting.lua
+++ b/script/provider/formatting.lua
@@ -82,6 +82,11 @@ function m.updateNonStandardSymbols(symbols)
return
end
+ for _, symbol in ipairs(symbols) do
+ if symbol == "//" then
+ codeFormat.set_clike_comments_symbol()
+ end
+ end
codeFormat.set_nonstandard_symbol()
end