diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-12-11 11:58:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-11 11:58:54 +0800 |
commit | 7181a1451c5f30774e037f62ebd26442cd1b6d9a (patch) | |
tree | fa06d10263c5b69ea2812f503b7dfe4ee863b076 | |
parent | d04f784db4435aac7d1a48b39db2ef2b46870da7 (diff) | |
parent | dab59d5c9315b67b2032ebffa5c5f728be3c09f6 (diff) | |
download | lua-language-server-7181a1451c5f30774e037f62ebd26442cd1b6d9a.zip |
Merge pull request #2445 from CppCXY/master
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 |