فهرست منبع

优化代码提示

mxd 3 سال پیش
والد
کامیت
e11076343a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      magic-editor/src/console/src/scripts/parsing/tokenizer.js

+ 1 - 1
magic-editor/src/console/src/scripts/parsing/tokenizer.js

@@ -84,7 +84,7 @@ const tokenizerString = (stream, tokenType, tokens) => {
             }
             let ch = stream.consume();
             if (tokenType !== TokenType.TripleQuote && (ch === '\r' || ch === '\n')) {
-                throw new ParseException(tokenType.getError() + tokenType.getError() + "定义的字符串不能换行", stream.endSpan());
+                throw new ParseException(tokenType.error + tokenType.error + "定义的字符串不能换行", stream.endSpan());
             }
         }
         if (!matchedEndQuote) {