diff options
author | Veetaha <[email protected]> | 2020-01-26 23:38:16 +0000 |
---|---|---|
committer | Veetaha <[email protected]> | 2020-02-03 22:00:55 +0000 |
commit | c6d0881382548da9e6f8a8362306e7c3948b84b8 (patch) | |
tree | 84b97ddda83a86735fa4f9da6d5bbab9c64393ff /crates/ra_syntax | |
parent | ffe00631d5823070d6ab9e92ae7cfb5dcb04200d (diff) |
add better docs for tokenize errors
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/src/parsing/lexer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/parsing/lexer.rs b/crates/ra_syntax/src/parsing/lexer.rs index 7cd7110de..bf6b4d637 100644 --- a/crates/ra_syntax/src/parsing/lexer.rs +++ b/crates/ra_syntax/src/parsing/lexer.rs | |||
@@ -107,9 +107,9 @@ pub fn first_token(text: &str) -> Option<ParsedToken> { | |||
107 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 107 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
108 | pub enum TokenizeError { | 108 | pub enum TokenizeError { |
109 | /// Base prefix was provided, but there were no digits | 109 | /// Base prefix was provided, but there were no digits |
110 | /// after it, e.g. `0x`. | 110 | /// after it, e.g. `0x`, `0b`. |
111 | EmptyInt, | 111 | 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-`, |
113 | EmptyExponent, | 113 | EmptyExponent, |
114 | 114 | ||
115 | /// Block comment lacks trailing delimiter `*/` | 115 | /// Block comment lacks trailing delimiter `*/` |