vim-erlang/vim-erlang-runtime

Variables are not highlighted properly when used in place of a function name in a function call

Stratus3D opened this issue · 2 comments

In this example:

module:FunName(Params)

FunName is highlighted as an atom instead of a variable. It has to be a variable in all cases because it starts with a capital letter and is not wrapped in single quotes. Params is highlighted as a variable as expected. This is the only scenario I have come across where a variable name isn't highlight as such.

I am using Vim 7.3 on OSX with the solarized dark theme.

Screenshot:
screen shot 2016-03-22 at 4 19 45 pm

In this case FunName should be blue as well.

@Stratus3D I created a fix in my mod_func branch. Could you test it? Thank you.

Looks good to me. Thanks!

screen shot 2016-03-28 at 5 34 00 pm