summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authoririri <iri@konnichiwastevenspielbergde.su>2019-01-08 12:27:52 -0800
committerOri Bernstein <ori@eigenstate.org>2019-01-09 10:31:42 -0800
commite2253ed191455e8e7d1a97583a8eb13cbde8e129 (patch)
treecd24d73a79da635b5843b359566632126605ab85 /support
parent6ba50de2f15f5f52e154f053a077d354789f0a2b (diff)
downloadmc-e2253ed191455e8e7d1a97583a8eb13cbde8e129.tar.gz
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.
Diffstat (limited to 'support')
-rw-r--r--support/vim/syntax/myr.vim13
1 files changed, 7 insertions, 6 deletions
diff --git a/support/vim/syntax/myr.vim b/support/vim/syntax/myr.vim
index 1be4e2a..84680c5 100644
--- a/support/vim/syntax/myr.vim
+++ b/support/vim/syntax/myr.vim
@@ -6,27 +6,28 @@ if exists("b:current_syntax")
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
\ generic
\ goto
\ if
+ \ impl
\ match
\ pkg
- \ protect
+ \ pkglocal
\ sizeof
\ struct
\ trait