vscode-rust icon indicating copy to clipboard operation
vscode-rust copied to clipboard

Syntax highlighting - reference to a char recognized as a lifetime

Open to-mas-kral opened this issue 7 years ago • 0 comments

Version of VSCode: 1.12.2 Version of the extension: 0.3.14 OS: Antergos Linux

Description: In this example code:

match chars.peek() {
        Some(&'a'...'f') => true,
        Some(_) => false,
        None => false
}

the &'a'...'f' is highlighted as a lifetime 'a rather than a reference to a char.

to-mas-kral avatar Jun 05 '17 18:06 to-mas-kral