update single include file

This commit is contained in:
pantor
2020-04-19 16:15:51 +02:00
parent 8f2fac5d4d
commit cc5cc2875f
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -70,6 +70,7 @@ endif()
target_link_libraries(inja INTERFACE ${INJA_SELECTED_JSON_LIBRARY})
execute_process(COMMAND scripts/update_single_include.sh WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
# CMake: add_custom_command
if(BUILD_TESTING AND INJA_BUILD_TESTS)
+5 -1
View File
@@ -1870,8 +1870,11 @@ class FunctionStorage {
if (it == m_map.end()) {
return nullptr;
}
for (auto &&i: it->second) {
if (i.num_args == num_args) return &i;
if (i.num_args == num_args) {
return &i;
}
}
return nullptr;
}
@@ -2215,6 +2218,7 @@ class Lexer {
if (std::isalpha(ch)) {
return scan_id();
}
switch (ch) {
case ',':
return make_token(Token::Kind::Comma);