Quantcast

use the same color for else in try/except

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

use the same color for else in try/except

monax
Hello.

For example let see color theme molokai, "try/except" in green, if/
else - red (or something close). But try/except can use "else" and I
want to see that "else" in green color. It is possible?

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: use the same color for else in try/except

Charles Campbell
monax wrote:
> Hello.
>
> For example let see color theme molokai, "try/except" in green, if/
> else - red (or something close). But try/except can use "else" and I
> want to see that "else" in green color. It is possible?
>
>    
If you want some help...

* what language are you using?
* show a code excerpt illustrating the problem

Regards,
Chip Campbell

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: use the same color for else in try/except

monax
> * what language are you using?
> * show a code excerpt illustrating the problem

Sorry, I forgot show to example.

I use python:

#green
try:
    # red
    if True:
        pass
    # red
    else:
        pass
#green
except Exception, e:
    raise e
# red, but I want to see green
else:
    pass

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Loading...