tree-sitter / tree-sitter-rust

Rust grammar for tree-sitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ChrisMGeo opened this issue · comments

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

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.