Skip to content

Commit 1920e84

Browse files
committed
修复错误的Token报错提示转换
1 parent a2827d0 commit 1920e84

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/bangls/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bangls"
3-
version = "0.1.15"
3+
version = "0.1.16"
44
edition = "2024"
55

66
[features]

tools/parser/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ pub fn format_parse_err<const MAX_INVALID_TOKEN_VIEW: usize>(
438438

439439
fn get_token_name(s: &str) -> Option<&'static str> {
440440
match s {
441-
r###"r#"[_\\p{XID_Start}]\\p{XID_Continue}|__lsp_hover__@*"#"###
441+
r###"r#"[_\\p{XID_Start}]\\p{XID_Continue}*|__lsp_hover__@"#"###
442442
=> "Identify",
443443
r###"r#"@[_\\p{XID_Start}][\\p{XID_Continue}\\-]*"#"###
444444
=> "OIdentify",

0 commit comments

Comments
 (0)