enjoy 4.4 release ^_^

This commit is contained in:
James
2019-08-20 21:29:19 +08:00
parent 6156051e16
commit 442a920366
14 changed files with 280 additions and 107 deletions

View File

@@ -63,6 +63,9 @@ class TextToken extends Token {
}
// 两个指令之间全是空白字符, 设置其长度为 0为 Parser 过滤内容为空的 Text 节点做准备
// 典型测试用例:两个带有前导空格,并且都在独立一行的 #set(...) 指令,前一个 #set 指令
// 虽然是 '\n' 结尾,但已在 Lexer 中被 prepareNextScan(...) 删掉
// 另一典型用例:#date() #date(),可通过配置 keepLineBlank 为 true 保留指令间的空白字符
text.setLength(0);
return true; // 当两指令之间全为空白字符时,告知调用方需要吃掉行尾的 '\n'
}