aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/yuescript/yue_compiler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp
index 6637d1f..a4ce15c 100644
--- a/src/yuescript/yue_compiler.cpp
+++ b/src/yuescript/yue_compiler.cpp
@@ -1033,6 +1033,9 @@ private:
1033 1033
1034 const std::string nl(ast_node* node) const { 1034 const std::string nl(ast_node* node) const {
1035 if (_config.reserveLineNumber) { 1035 if (_config.reserveLineNumber) {
1036 if (ast_is<EmptyLine_t>(node)) {
1037 return _newLine;
1038 }
1036 return " -- "s + std::to_string(node->m_begin.m_line + _config.lineOffset) + _newLine; 1039 return " -- "s + std::to_string(node->m_begin.m_line + _config.lineOffset) + _newLine;
1037 } else { 1040 } else {
1038 return _newLine; 1041 return _newLine;