Skip to content
Snippets Groups Projects
Commit ceea6f62 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Get floopy highlighting to work

parent 98a7acd8
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
" :set filetype=floopy " :set filetype=floopy
" "
" You may also include a line " You may also include a line
" vim: filetype=pyopencl.python " vim: filetype=floopy.python
" at the end of your file to set the file type automatically. " at the end of your file to set the file type automatically.
" "
" Another option is to include the following in your .vimrc " Another option is to include the following in your .vimrc
...@@ -16,24 +16,7 @@ ...@@ -16,24 +16,7 @@
runtime! syntax/fortran.vim runtime! syntax/fortran.vim
unlet b:current_syntax unlet b:current_syntax
try
syntax include @clCode syntax/opencl.vim
catch
syntax include @clCode syntax/c.vim
endtry
if exists('b:current_syntax')
let s:current_syntax=b:current_syntax
" Remove current syntax definition, as some syntax files (e.g. cpp.vim)
" do nothing if b:current_syntax is defined.
unlet b:current_syntax
endif
syntax include @LoopyPython syntax/python.vim syntax include @LoopyPython syntax/python.vim
try
syntax include @LoopyPython after/syntax/python.vim
catch
endtry
if exists('s:current_syntax') if exists('s:current_syntax')
let b:current_syntax=s:current_syntax let b:current_syntax=s:current_syntax
...@@ -43,6 +26,6 @@ endif ...@@ -43,6 +26,6 @@ endif
syntax region textSnipLoopyPython syntax region textSnipLoopyPython
\ matchgroup=Comment \ matchgroup=Comment
\ start='$loopy begin transform' end='$loopy end transform' \ start='$loopy begin' end='$loopy end'
\ containedin=ALL \ containedin=ALL
\ contains=@LoopyPython \ contains=@LoopyPython
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment