Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes to :P5 to match magical \n behavior.
Discovered when making \n on Windows default to \r\n.
  • Loading branch information
jnthn committed Nov 5, 2015
1 parent 9464094 commit 0223e6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QRegex/P5Regex/Actions.nqp
Expand Up @@ -93,7 +93,7 @@ class QRegex::P5Regex::Actions is HLL::Actions {
:rxtype('concat'),
QAST::Regex.new(
:rxtype('quant'), :min(0), :max(1),
QAST::Regex.new( :rxtype('literal'), "\n" )
QAST::Regex.new( :rxtype('cclass'), :name<n> )
),
QAST::Regex.new( :rxtype<anchor>, :subtype(%*RX<m> ?? 'eol' !! 'eos'), :node($/) )
);
Expand Down Expand Up @@ -244,7 +244,7 @@ class QRegex::P5Regex::Actions is HLL::Actions {
:rxtype('concat'),
QAST::Regex.new(
:rxtype('quant'), :min(0), :max(1),
QAST::Regex.new( :rxtype('literal'), "\n" )
QAST::Regex.new( :rxtype('cclass'), :name<n> )
),
QAST::Regex.new( :rxtype<anchor>, :subtype('eos'), :node($/) )
);
Expand Down

0 comments on commit 0223e6a

Please sign in to comment.