From 3d35e81a97a1f68133e9da1ae9c6d501a1500175 Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 16 Jul 2025 11:26:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E8=AF=8D?= =?UTF-8?q?=E6=B3=95=E9=94=99=E8=AF=AF=E5=BC=82=E5=B8=B8=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改了 LexicalException 类中错误信息的显示格式 - 新格式:文件名 + "行 " +行号 + ", 列 " + 列号 + ": " +错误类型 + ": " +详细信息 - 旧格式:文件名 + ":" + 行号 + ":" + 列号 + ": " + 错误类型 + " '" + 详细信息 + "'" --- .../org/jcnc/snow/compiler/lexer/core/LexicalException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jcnc/snow/compiler/lexer/core/LexicalException.java b/src/main/java/org/jcnc/snow/compiler/lexer/core/LexicalException.java index 0d3f6be..ad81965 100644 --- a/src/main/java/org/jcnc/snow/compiler/lexer/core/LexicalException.java +++ b/src/main/java/org/jcnc/snow/compiler/lexer/core/LexicalException.java @@ -11,7 +11,7 @@ package org.jcnc.snow.compiler.lexer.core; * *
  * 例:
- *     main.s:2:19: 词法错误:非法字符序列 '@' at 2:19
+ *     Main.snow: 行 7, 列 20: 词法错误:非法字符序列 '@'
  * 
*/ public class LexicalException extends RuntimeException {