derekwyatt / vim-scala

My work on integration of Scala into Vim - not a ton here, but useful for me.
http://derekwyatt.org
Apache License 2.0
1.09k stars 144 forks source link

syntax: Fix word boundary of highlighting #167

Open rhysd opened 3 years ago

rhysd commented 3 years ago

Since vim-scala higlights when word without checking word boundary, it highlights a word like elsewhen partially.

This is a real code which I'm writing with Chisel3.

スクリーンショット 2021-09-07 2 38 35

This PR fixes to check the word boundary. Now it does not highlight entire elsewhen method name correctly:

スクリーンショット 2021-09-07 2 41 03

I also found other words had the same issue so I fixed them as well.