Skip to content

Commit dc10277

Browse files
committed
docs: tag_token_word
1 parent c2c1c0f commit dc10277

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/nomparser/helper.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ pub fn tag_token_symbol(token: TokenType) -> impl Fn(Span) -> IResult<Span, (Tok
1919
})(input)
2020
}
2121
}
22+
23+
/// 不能直接接 `字母`、`数字` 或 `_`,用于关键字
2224
pub fn tag_token_word(token: TokenType) -> impl Fn(Span) -> IResult<Span, (TokenType, Range)> {
2325
move |input| {
2426
let (s1, s2): (LocatedSpan<&str, bool>, LocatedSpan<&str, bool>) =

0 commit comments

Comments
 (0)