Package: vim-runtime
Version: 2:7.3.154+hg~74503f6ee649-2
Tags: patch
In Pyrex/Cython sources, vim highlights identifiers containing "from"
incorrectly, e.g. in:
this_from_is_not_a_keyword = 4
it highlights "from" like if it was a keyword. I believe that the
attached patch fixes this bug.
--
Jakub Wilk
diff --git a/runtime/syntax/pyrex.vim b/runtime/syntax/pyrex.vim
--- a/runtime/syntax/pyrex.vim
+++ b/runtime/syntax/pyrex.vim
@@ -37,7 +37,7 @@
" match with lower priority than pyrexForFrom
syn clear pythonInclude
syn keyword pythonInclude import
-syn match pythonInclude "from"
+syn match pythonInclude "\<from\>"
" With "for[^:]*\zsfrom" VIM does not match "for" anymore, so
" I used the slower "\@<=" form