Explorar el Código

优化代码提示

mxd hace 3 años
padre
commit
e11076343a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {