diff options
author | CppCXY <812125110@qq.com> | 2023-12-11 11:19:13 +0800 |
---|---|---|
committer | CppCXY <812125110@qq.com> | 2023-12-11 11:19:13 +0800 |
commit | dab59d5c9315b67b2032ebffa5c5f728be3c09f6 (patch) | |
tree | 0ee8a8c7e37c4ff24da291891c5516cf3195be19 | |
parent | bd89d294185c09e79428e7e8254ecca26c34406a (diff) | |
download | lua-language-server-dab59d5c9315b67b2032ebffa5c5f728be3c09f6.zip |
support c like comments
m--------- | 3rd/EmmyLuaCodeStyle | 0 | ||||
-rw-r--r-- | script/provider/formatting.lua | 5 |
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 |