From ceea6f625dc00b8c07c5542b05a7de8c0450a237 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Mon, 22 Jun 2015 02:16:11 -0500
Subject: [PATCH] Get floopy highlighting to work

---
 contrib/floopy-highlighting/floopy.vim | 21 ++-------------------
 1 file changed, 2 insertions(+), 19 deletions(-)

diff --git a/contrib/floopy-highlighting/floopy.vim b/contrib/floopy-highlighting/floopy.vim
index 59c5b15a4..57c09a652 100644
--- a/contrib/floopy-highlighting/floopy.vim
+++ b/contrib/floopy-highlighting/floopy.vim
@@ -7,7 +7,7 @@
 " :set filetype=floopy
 "
 " 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.
 "
 " Another option is to include the following in your .vimrc
@@ -16,24 +16,7 @@
 runtime! syntax/fortran.vim
 
 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
-try
-  syntax include @LoopyPython after/syntax/python.vim
-catch
-endtry
 
 if exists('s:current_syntax')
   let b:current_syntax=s:current_syntax
@@ -43,6 +26,6 @@ endif
 
 syntax region textSnipLoopyPython
 \ matchgroup=Comment
-\ start='$loopy begin transform' end='$loopy end transform'
+\ start='$loopy begin' end='$loopy end'
 \ containedin=ALL
 \ contains=@LoopyPython
-- 
GitLab