Skip to content

Commit

Permalink
Fixed vim highlighting for \' (and other) escapes in char literals
Browse files Browse the repository at this point in the history
  • Loading branch information
j3parker committed Mar 25, 2012
1 parent 8462c6c commit f5c91d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/etc/vim/syntax/rust.vim
Expand Up @@ -46,9 +46,10 @@ syn match rustFloat display contained "\.\d\+\(e[-+]\=\d\+\)\=[fl]\=\>"
"floating point number, without dot, with exponent
syn match rustFloat display contained "\d\+e[-+]\=\d\+[fl]\=\>"

syn match rustCharacter "'[^']*'"

syn case match

syn match rustCharacter "'\([^'\\]\|\\\(['nrt\\\"]\|x\x\{2}\|u\x\{4}\|U\x\{8}\)\)'"

syn region rustComment start="/\*" end="\*/" contains=rustComment
syn region rustComment start="//" skip="\\$" end="$" keepend

Expand Down

0 comments on commit f5c91d1

Please sign in to comment.