Skip to content

Commit 67b9d82

Browse files
committed
vim syntax: add drop & rustString contains rustTodo
1 parent 3ced5b0 commit 67b9d82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/etc/vim/syntax/rust.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ syn keyword rustAssert assert
1313
syn match rustAssert "assert\(\w\)*"
1414
syn keyword rustKeyword alt as break
1515
syn keyword rustKeyword check claim cont const copy else export extern fail
16-
syn keyword rustKeyword do for if impl import in let log
16+
syn keyword rustKeyword do drop for if impl import in let log
1717
syn keyword rustKeyword loop mod mut of pure
1818
syn keyword rustKeyword ret self to unchecked
1919
syn match rustKeyword "unsafe" " Allows also matching unsafe::foo()
@@ -45,7 +45,7 @@ syn keyword rustConstant success failure " task
4545
syn match rustModPath "\w\(\w\)*::[^<]"he=e-3,me=e-3
4646
syn match rustModPathSep "::"
4747

48-
syn region rustString start=+L\="+ skip=+\\\\\|\\"+ end=+"+
48+
syn region rustString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=rustTodo
4949

5050
syn region rustAttribute start="#\[" end="\]" contains=rustString
5151

0 commit comments

Comments
 (0)