Skip to content

Commit 1a93b5c

Browse files
committed
Merge branch 'master' of github.com:CppCXY/EmmyLuaCodeStyle
2 parents 59d02b6 + e3f93a9 commit 1a93b5c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CodeService/src/FormatElement/TextElement.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
TextElement::TextElement(std::string_view text, TextRange range)
55
: FormatElement(range),
6-
_text(text),
7-
_node(nullptr)
6+
_node(nullptr),
7+
_text(text)
8+
89
{
910
}
1011

LuaParser/src/LuaCustomParser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ int GetCurrentChar(std::string_view source, std::size_t i)
1010
unsigned char ch = source[i];
1111
return ch;
1212
}
13+
return EOZ;
1314
}
1415

1516
LuaTokenType LuaCustomParser::Lex(std::string_view source, std::size_t start, std::size_t& consumeSize)

include/CodeFormatServer/Service/ServiceType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ enum class ServiceType
1313
};
1414

1515
#define LANGUAGE_SERVICE(ServiceClass)\
16-
inline static constexpr ServiceType ServiceIndex = ServiceType::ServiceClass
16+
inline static constexpr ServiceType ServiceIndex = ServiceType::ServiceClass

0 commit comments

Comments
 (0)