Browse Source

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

SongZihuan 3 năm trước cách đây
mục cha
commit
497e3e262e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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"