tree-sitter / tree-sitter-rust

Rust grammar for tree-sitter
MIT License
338 stars 96 forks source link

Highlight `while` as `@keyword.rust` #181

Closed SvenFibelkorn closed 1 year ago

SvenFibelkorn commented 1 year ago

Keywords like pub, fn and for get highlighted as keywords. Inspect in neovim shows @keyword.rust links to Keyword rust. Keywords like while and loop, break and continue, if and else however do not show @keyword.rust.

Some themes italicize @keyword.rust and having for italicized but not while presents a minor visual inconsistency.

amaanq commented 1 year ago

This is (likely?) an nvim-treesitter issue not an issue w/ tree-sitter-rust, and even then it's hard to discern the issue... all the ones you mentioned not showing @keyword.rust either are @conditional or @repeat