Skip to content

Commit 7181a14

Browse files
authored
Merge pull request #2445 from CppCXY/master
support c like comments
2 parents d04f784 + dab59d5 commit 7181a14

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

script/provider/formatting.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ function m.updateNonStandardSymbols(symbols)
8282
return
8383
end
8484

85+
for _, symbol in ipairs(symbols) do
86+
if symbol == "//" then
87+
codeFormat.set_clike_comments_symbol()
88+
end
89+
end
8590

8691
codeFormat.set_nonstandard_symbol()
8792
end

0 commit comments

Comments
 (0)