We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8462c6c commit f5c91d1Copy full SHA for f5c91d1
src/etc/vim/syntax/rust.vim
@@ -46,9 +46,10 @@ syn match rustFloat display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"
46
"floating point number, without dot, with exponent
47
syn match rustFloat display contained "\d\+e[-+]\=\d\+[fl]\=\>"
48
49
-syn match rustCharacter "'[^']*'"
50
-
51
syn case match
+
+syn match rustCharacter "'\([^'\\]\|\\\(['nrt\\\"]\|x\x\{2}\|u\x\{4}\|U\x\{8}\)\)'"
52
53
syn region rustComment start="/\*" end="\*/" contains=rustComment
54
syn region rustComment start="//" skip="\\$" end="$" keepend
55
0 commit comments