tree-sitter / tree-sitter-rust

Rust grammar for tree-sitter
MIT License
340 stars 97 forks source link

Should the path seperator (`::`) be considered as an `@operator` instead of `@punctuation.delimiter`? #171

Closed ChrisMGeo closed 1 year ago

ChrisMGeo commented 1 year ago

Similar to how textmate grammars do it, should the path seperator for crates, modules, etc. be considered as @operator instead of @punctuation.delimiter?

nickeb96 commented 1 year ago

Definitely not. :: is a path delimiter, not an operator.

Most people wouldn't consider / in a file path to be an operator either. That's essentially what :: is.