Skip to content

Commit 3955f59

Browse files
committed
修复macosx下的头文件包含
1 parent 37ff179 commit 3955f59

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

CodeFormatServer/src/Service/ConfigService.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "ConfigService.h"
22
#include <fstream>
3+
#include <sstream>
34
#include "CodeService/Config/LanguageTranslator.h"
45

56
ConfigService::ConfigService(LanguageServer *owner)

CodeService/src/Format/Analyzer/LineBreakAnalyzer.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ void LineBreakAnalyzer::Analyze(FormatState &f, const LuaSyntaxTree &t) {
137137
if (suffixedExpression.IsNode(t)) {
138138
AnalyzeSuffixedExpr(f, suffixedExpression, t);
139139
}
140+
break;
141+
}
142+
default: {
143+
break;
140144
}
141145
}
142146
} else {
@@ -146,6 +150,9 @@ void LineBreakAnalyzer::Analyze(FormatState &f, const LuaSyntaxTree &t) {
146150
BreakAfter(syntaxNode, t);
147151
break;
148152
}
153+
default: {
154+
break;
155+
}
149156
}
150157
}
151158
}

LuaParser/src/Ast/LuaSyntaxNodeKind.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ std::string_view detail::debug::GetSyntaxKindDebugName(LuaSyntaxNodeKind kind) {
9797
return "ShebangComment";
9898
case LuaSyntaxNodeKind::DocTagFormat:
9999
return "DocTagFormat";
100+
case LuaSyntaxNodeKind::TableFieldSep:
101+
return "TableFieldSep";
100102
}
101103
return "Unknown";
102104
}

0 commit comments

Comments
 (0)