diff --git a/contrib/pyopencl.vim b/contrib/pyopencl.vim index 4b5c4eb883d1f4e9f87e93403dc0dfe07c4a12a4..e3e5fa9f55dedec38245972683da4a525af4f70a 100644 --- a/contrib/pyopencl.vim +++ b/contrib/pyopencl.vim @@ -69,8 +69,13 @@ syn region pythonCLString \ start=+[uU]\=\z('''\|"""\)//CL//+ end="\z1" keepend \ contains=@clCode,@clmakoCode +syn region pythonCLRawString + \ start=+[uU]\=[rR]\z('''\|"""\)//CL//+ end="\z1" keepend + \ contains=@clCode,@clmakoCode + " Uncomment if you still want the code highlighted as a string. " hi link pythonCLString String +" hi link pythonCLRawString String let b:current_syntax = "pyopencl"