gustavo-hms / luar

Script Kakoune using Lua
GNU Lesser General Public License v3.0
45 stars 3 forks source link

Add common shell characters to lua capture regex #11

Closed enricozb closed 3 years ago

enricozb commented 3 years ago

The current highlighter for lua regions breaks on something like this

  lua %val{bufname} %sh{ echo "$kak_quoted_buflist" | xargs -n1 printf '%s\n' } %{ ... }

because the characters $|-' aren't in the region capture regex. I've also added the characters -|', since they are common for shell operations (-args, pipes, and single-quotes).

gustavo-hms commented 3 years ago

Hi, @enricozb! Thanks for the contribution!