diff --git a/rc/filetype/perl.kak b/rc/filetype/perl.kak index 348b4cd3..a7dcaa2a 100644 --- a/rc/filetype/perl.kak +++ b/rc/filetype/perl.kak @@ -37,21 +37,25 @@ provide-module perl %ยง add-highlighter shared/perl regions add-highlighter shared/perl/code default-region group -add-highlighter shared/perl/command region (? fill string +add-highlighter shared/perl/quote_punct region -match-capture '\bq[qwx]?([:;!@#$%^&*|,.?/~=+-])' '(.)' fill string +add-highlighter shared/perl/quote_regex region -match-capture '\bqr([:;!@#$%^&*|,.?/~=+-])' '(.)' fill meta -add-highlighter shared/perl/qq1 region -recurse \{ qq\{ \} fill string -add-highlighter shared/perl/qq2 region -recurse \( qq\( \) fill string -add-highlighter shared/perl/qq3 region -recurse \[ qq\[ \] fill string +add-highlighter shared/perl/double_heredoc region -match-capture <<~?\h*'(\w+)' ^\t*(\w+)\b fill string +add-highlighter shared/perl/single_heredoc region -match-capture <<~?\h*"(\w+)" ^\t*(\w+)\b fill string +add-highlighter shared/perl/bare_heredoc region -match-capture <<~?(\w+) ^\t*(\w+)\b fill string +add-highlighter shared/perl/pod region ^=\w+ ^=cut\b fill string evaluate-commands %sh{ # Grammar