Skip to content

Commit

Permalink
warn on nonsig space between alnums
Browse files Browse the repository at this point in the history
  • Loading branch information
TimToady committed May 16, 2015
1 parent f2f8128 commit 1036654
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/QRegex/P6Regex/Grammar.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,12 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
token atom {
# :dba('regex atom')
[
| \w [ \w+! <?before \w> ]? <.SIGOK>
| \w
[
| \w+! <?before \w>
| <?before ' ' \w> <!{ %*RX<s> }> <.worry("Space is not signficant here; please use quotes or :s (:sigspace) modifier (or, to suppress this warning, omit the space, or otherwise change the spacing)")>
]?
<.SIGOK>
| <metachar>
]
}
Expand Down

0 comments on commit 1036654

Please sign in to comment.