python - How can I get "is not" to be highlighted as a pythonOperator? -


i'm trying modify python.vim syntax file "is not" highlighted single pythonoperator.

for example, happen now:

this happen now

i've tried changing python.vim in several ways. example:

--- python.vim.orig 2013-08-19 10:21:54.379892386 -0700                                                                                                    +++ python.vim  2013-08-19 10:21:58.979892308 -0700 @@ -152,6 +152,7 @@   syn keyword pythonprecondit     import  syn keyword pythonexception     try except  syn keyword pythonoperator      , in not or  +syn match   pythonoperator      "is not"   if s:python2syntax()  if !s:enabled("g:python_print_as_function") 

but nothing seems work.

what's interesting if remove "is" , "not" , other python.vim syntax files, in:

--- python.vim.orig 2013-08-19 10:21:54.379892386 -0700                                                                                                    +++ python.vim  2013-08-19 10:41:37.067873208 -0700 @@ -151,7 +151,7 @@   syn keyword pythonconditional   if elif else  syn keyword pythonprecondit     import  syn keyword pythonexception     try except -syn keyword pythonoperator      , in not or  +syn keyword pythonoperator      , in or    if s:python2syntax()    if !s:enabled("g:python_print_as_function") 

the "is" still highlighted. weird.

nevermind, turns out vim-cute-python has line:

syntax clear pythonoperator 

that discarding changes pythonoperator.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -