ref: e2253ed191455e8e7d1a97583a8eb13cbde8e129
parent: 6ba50de2f15f5f52e154f053a077d354789f0a2b
author: iriri <iri@konnichiwastevenspielbergde.su>
date: Tue Jan 8 07:27:52 EST 2019
Fix vim syntax highlighting One line function literals and nested comments were broken. The keyword list is probably overkill but I don't use it so I just brought it up to date.
--- a/support/vim/syntax/myr.vim
+++ b/support/vim/syntax/myr.vim
@@ -6,18 +6,18 @@
finish
endif
-syn region myrComment start=+/\*+ end=+\*/+
+syn region myrComment start=+/\*+ end=+\*/+ contains=myrComment
syn region myrComment start=+//+ end=+$+
syn match myrSpecial display contained "\\\(x\x\+\|\o\{1,3}\|u{[a-zA-Z0-9_]*}\|.\|$\)"
-syn match myrFormat display "{[^}]*}"
+syn match myrFormat display contained "{[^}]*}"
syn region myrString start=+"+ skip=+\\"+ end=+"+ contains=myrSpecial,myrFormat extend
syn region myrChar start=+'+ skip=+\\'+ end=+'+ contains=myrSpecial,myrFormat extend
-syn keyword myrKeyword castto
+syn keyword myrKeyword auto
+ \ break
\ const
- \ default
+ \ continue
\ elif
\ else
- \ export
\ extern
\ false
\ for
@@ -24,9 +24,10 @@
\ generic
\ goto
\ if
+ \ impl
\ match
\ pkg
- \ protect
+ \ pkglocal
\ sizeof
\ struct
\ trait