Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions syntax/vyper.vim
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ syn match vyperAddressError "\<0x\x\{0,39}\>" display
syn match vyperAddressError "\<0x\x\{41,}\>" display
syn match vyperAddressError "\<0x\x*\X\+.\+\>" display
syn match vyperDecimal "\<\d*\.\d\+\>" display
"String (String inside a string doesn't work properly!)
syn match vyperString +".\{-}"+ display
syn match vyperString +'.\{-}'+ display
"String
syntax match vyperSpecial "\\\d\d\d\|\\."
syntax region vyperString start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ contains=vyperSpecial
syntax region vyperString start=+'+ skip=+\\\\\|\\'+ end=+'\|$+ contains=vyperSpecial

"Docstrings
syn region vyperString start=+[uU]\=\z('''\|"""\)+ end="\z1" contains=vyperTodo,vyperNatspec keepend

Expand Down