vim-scala icon indicating copy to clipboard operation
vim-scala copied to clipboard

syntax: Fix word boundary of highlighting

Open rhysd opened this issue 3 years ago • 0 comments

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.

rhysd avatar Sep 06 '21 17:09 rhysd