mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
add better docs for tokenize errors
This commit is contained in:
parent
ffe00631d5
commit
c6d0881382
1 changed files with 2 additions and 2 deletions
|
@ -107,9 +107,9 @@ pub fn first_token(text: &str) -> Option<ParsedToken> {
|
|||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum TokenizeError {
|
||||
/// Base prefix was provided, but there were no digits
|
||||
/// after it, e.g. `0x`.
|
||||
/// after it, e.g. `0x`, `0b`.
|
||||
EmptyInt,
|
||||
/// Float exponent lacks digits e.g. `e+`, `E+`, `e-`, `E-`,
|
||||
/// Float exponent lacks digits e.g. `12.34e+`, `12.3E+`, `12e-`, `1_E-`,
|
||||
EmptyExponent,
|
||||
|
||||
/// Block comment lacks trailing delimiter `*/`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue