rust-lang / rust-enhanced

The official Sublime Text 4 package for the Rust Programming Language
MIT License
780 stars 104 forks source link

Function name highlight when there is space between function name and parameters #479

Closed sweetyoru closed 2 years ago

sweetyoru commented 2 years ago

Sublime Text Version

Sublime Text 4 (Build 4126)

Rust Enhanced Version

2.24.0

Operating system

Arch Linux

Expected behavior

The function name in a call is highlighted even when there is a space between function name and its parameters.

Actual behavior

The function name appear in white color.

Steps to reproduce

  1. Type this line: function_name (arg1, arg2, arg2);
  2. See the function name color
ehuss commented 2 years ago

Thanks for the report! I posted #480 with a fix.

TheIronBorn commented 2 years ago

I would bet there's other legal whitespace we've been ignoring

sweetyoru commented 2 years ago

Maybe, method call? my_obj.something (arg1, arg2);

I just notice method call highlight is not consistent, for example:

result.is_ok (): this one is not highlighted. my_obj.Something (): this one is highlighted.

2022-01-17-093150_1920x1080_scrot

2022-01-17-093143_1920x1080_scrot