Use region for macros.
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Thu, 11 Jun 2009 14:44:24 +0000 (14:44 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Thu, 11 Jun 2009 14:44:24 +0000 (14:44 +0000)
git-svn-id: http://svn.complang.org/ragel/trunk@904 052ea7fc-9027-0410-9066-f65837a77df0

ragel.vim

index 023b69b..fa77e43 100644 (file)
--- a/ragel.vim
+++ b/ragel.vim
@@ -14,7 +14,8 @@ syntax region ocComment start="\/\*" end="\*\/"
 syntax match ocComment "\/\/.*$"
 
 " Anything preprocessor
-syntax match ocPreproc "#.*$"
+syntax match ocPreproc "#\(.\|\\\n\)*$"
+syntax region ocPreproc start="#" end="[^\\]$"
 
 " Strings
 syntax match ocLiteral "'\(\\.\|[^'\\]\)*'"