[PATCH] Fix vim syntax highlighting
[Thread Prev] | [Thread Next]
- Subject: [PATCH] Fix vim syntax highlighting
- From: iriri <iri@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: myrddin-dev@xxxxxxxxxxxxxx
- Date: Tue, 08 Jan 2019 12:27:52 -0800
- To: "myrddin-dev" <myrddin-dev@xxxxxxxxxxxxxx>
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.
---
support/vim/syntax/myr.vim | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/support/vim/syntax/myr.vim b/support/vim/syntax/myr.vim
index 1be4e2ad..84680c5b 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
--
2.20.1
| Re: [PATCH] Fix vim syntax highlighting | Ori Bernstein <ori@xxxxxxxxxxxxxx> |
- Prev by Date: Re: Questions about mi/match.c in the compiler
- Next by Date: Re: [PATCH] Fix vim syntax highlighting
- Previous by thread: Re: Questions about mi/match.c in the compiler
- Next by thread: Re: [PATCH] Fix vim syntax highlighting
- Index(es):