diff options
author | Ian Johnson <ian.johnson@appliedlanguage.com> | 2013-11-13 19:18:04 +0400 |
---|---|---|
committer | Ian Johnson <ian.johnson@appliedlanguage.com> | 2013-11-13 19:18:04 +0400 |
commit | a0c80a27b4190e2f88f6614d1973a7bf4691de96 (patch) | |
tree | 2c31f5244c34b3cc32b6d7e0aa96b6b4042528e6 | |
parent | 550b0315883b0a4f8f00104bfddf93dcc7141e80 (diff) |
Vim syntax highlighting now highlights string literals properly.
-rw-r--r-- | extras/syntax-highlighting/vim/pcl.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/syntax-highlighting/vim/pcl.vim b/extras/syntax-highlighting/vim/pcl.vim index ee46bef..54ddc8e 100644 --- a/extras/syntax-highlighting/vim/pcl.vim +++ b/extras/syntax-highlighting/vim/pcl.vim @@ -22,6 +22,8 @@ syn match pclStateIdentifier "@\h\+" syn match pclStateQualifiedIdentifier "@\h\+\(\.\h\+\)\+" syn match pclOperators ":=\|->\|<-\|>>>\|\*\*\*\|&&&\|first\|second" +syn region pclString start=/\v"/ skip=/\v\\./ end=/\v"/ + hi def link pclKeywords Statement hi def link pclStatement Statement hi def link pclOperators Operator @@ -31,6 +33,7 @@ hi def link pclStateQualifiedIdentifier Debug hi def link pclStateIdentifier Debug hi def link pclImports Include hi def link pclComment Comment +hi def link pclString String let b:current_syntax = "pcl" " Options for vi: ts=2 sw=2 sts=2 nowrap noexpandtab ft=vimi |