Skip to content

Commit c6d0881

Browse files
author
Veetaha
committed
add better docs for tokenize errors
1 parent ffe0063 commit c6d0881

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ra_syntax/src/parsing/lexer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ pub fn first_token(text: &str) -> Option<ParsedToken> {
107107
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
108108
pub enum TokenizeError {
109109
/// Base prefix was provided, but there were no digits
110-
/// after it, e.g. `0x`.
110+
/// after it, e.g. `0x`, `0b`.
111111
EmptyInt,
112-
/// Float exponent lacks digits e.g. `e+`, `E+`, `e-`, `E-`,
112+
/// Float exponent lacks digits e.g. `12.34e+`, `12.3E+`, `12e-`, `1_E-`,
113113
EmptyExponent,
114114

115115
/// Block comment lacks trailing delimiter `*/`

0 commit comments

Comments
 (0)