Skip to content

Commit 5cc4845

Browse files
committed
support Domain-Specific Properties qoute_type
1 parent 1d5cccc commit 5cc4845

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CodeFormatCore/src/Config/LuaStyle.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ void LuaStyle::Parse(std::map<std::string, std::string, std::less<>> &configMap)
4545
}
4646
}
4747

48+
// for editorconfig Domain-Specific Properties
49+
if (configMap.count("quote_type")) {
50+
if (configMap.at("quote_type") == "single") {
51+
quote_style = QuoteStyle::Single;
52+
} else if (configMap.at("quote_type") == "double") {
53+
quote_style = QuoteStyle::Double;
54+
}
55+
}
56+
4857
if (configMap.count("table_separator_style")) {
4958
auto style = configMap.at("table_separator_style");
5059
if (style == "none") {

0 commit comments

Comments
 (0)