Browse Source

fix: 修复literal没有结尾的错误

SongZihuan 3 years ago
parent
commit
497e3e262e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/runtime/aFunTool/base/__base.h

+ 1 - 0
src/runtime/aFunTool/base/__base.h

@@ -7,6 +7,7 @@
 static const LiteralFunc literal[] = {
         /* 字符串匹配:\"[\s\S]*\" */
         {.pattern="\\\"[\\s\\S]*\\\"", .func="str", .in_protect=true},
+        {.pattern=NULL}
 };
 
 #define string_id "string"