vim-erlang / vim-erlang-runtime

Erlang indentation and syntax for Vim
https://vim-erlang.github.io
101 stars 29 forks source link

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

Closed Stratus3D closed 8 years ago

Stratus3D commented 8 years ago

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.

hcs42 commented 8 years ago

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

Stratus3D commented 8 years ago

Looks good to me. Thanks!

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