I try to make python.vim color similar to material theme (sublime text 3), see pictures: https://imgur.com/a/wOgH7
expected is material theme and current is mine.
You may noticed that all method, function for i.e: os.path.exists(replacement_file)
replacement_file are in green color but currently I can't do that with python.vim hacks.
Any help and suggestions is highly appreciated. thanks.
EDIT: to narrow down the situation, I have sample below:
basename = os.path.splitext(filename) if(os.path.isfile(candidate) or os.path.isdir(candidate)):
Here I'm trying to match
os.path.isdir that all the name of method or function.
What have I achieved so far?
I could match
os.path.isfile with this regex
but above regex will not match
os.path.isdir that said have space before them. Any help?