andreyorst / plug.kak

Plugin manager for Kakoune
MIT License
197 stars 18 forks source link

Avoid false positives in kakrc keyword highlighting #95

Closed krobelus closed 3 years ago

krobelus commented 3 years ago

For example for a command "lsp-did-change-config" in kakrc, the "config" suffix was highlighted, since "-" is not a word character for \w.

As far as I can tell, those keywords always have at least one guarding space except in contrived cases.

andreyorst commented 3 years ago

thanks