Skip to content

Commit

Permalink
Add "call site" variant
Browse files Browse the repository at this point in the history
Prefer over callsite, call-site
  • Loading branch information
coke committed Sep 9, 2021
1 parent 1ef056b commit c730122
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xt/word-variants.t
Expand Up @@ -12,11 +12,13 @@ Make sure certain words are normalized by checking regular expressions.

my @files = Test-Files.pods;

# Keys are the preferred variant, values are regex to complain about
my %variants = %(
# no lowercase 'boolean', unless it is followed by some selected
# characters as it might be included in a code snippet,
# see for example doc/Language/js-nutshell.pod6
Boolean => rx/ << boolean <!before \s* <[ \= \< \> \{ \} ]> > /,
"call site" => rx/ <<'call' '-'? 'site'>>/,
filehandle => rx:i/ << file [\s+|\-] handle /,
filesystem => rx:i/ << file [\s+|\-] system /,
lookahead => rx:i/ << look \- ahead /,
Expand Down

0 comments on commit c730122

Please sign in to comment.