rust-lang / rust-enhanced

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

Fully qualified path syntax of the function doesn't get highlighted #525

Closed faptc closed 4 months ago

faptc commented 4 months ago

Sublime Text Version

Sublime Text 4 (Build 4169)

Rust Enhanced Version

v2.27.0

Operating system

% uname -a
Linux pop-os 6.8.0-76060800daily20240311-generic #202403110203~1714077665~22.04~4c8e9a0

Expected behavior

What should have happened?

The fully qualified path syntax (FQPS) of the function should be highlighted the same as short name.

Actual behavior

What actually happened?

The FQPS of the function doesn't get highlighted. It has the same colour as identifiers.

Steps to reproduce

  1. Try this snippet below
fn main() {
    std::ptr::addr_eq(2,2);
    use std::ptr::addr_eq;
    addr_eq(2, 2);
    std::assert!();
    assert!();
}
  1. Rust Enhanced gives: image

References

faptc commented 4 months ago

Oops. Duplicate of #428.