EvgeniyPeshkov / syntax-highlighter

Syntax Highlighter extension for Visual Studio Code (VSCode). Based on Tree-sitter.
https://marketplace.visualstudio.com/items?itemName=evgeniypeshkov.syntax-highlighter
MIT License
210 stars 43 forks source link

[Rust] .. should be like operator #8

Closed Geobert closed 5 years ago

Geobert commented 5 years ago

image

In Rust, you can define a range with .. : 0..3 is 0 to 3 excluded and you can have 0..=3 meaning 3 included.

EvgeniyPeshkov commented 5 years ago

This is also ready. image

Geobert commented 5 years ago

Does ..= works as well?

EvgeniyPeshkov commented 5 years ago

Yes, it works as well. It seems to me, that Tree-sitter itself gets it wrong, but as = is also operator, highlighting is fine (=.