Permalink
Browse files

parse q:val for GlitchMr++

  • Loading branch information...
1 parent b842bb3 commit 77327a4a95792fbc8fc09a942d873e5b4676feda @TimToady TimToady committed Sep 19, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 STD.pm6
View
@@ -4327,6 +4327,14 @@ grammar Q is STD {
method postprocessor () { 'null' }
}
+ role v1 {
+ method postprocessor () { 'val' }
+ }
+
+ role v0 {
+ method postprocessor () { 'null' }
+ }
+
role w1 {
method postprocessor () { 'words' }
}
@@ -4459,6 +4467,7 @@ grammar Q is STD {
multi method tweak (:path(:$p)!) { self.mixin($p ?? ::p1 !! ::p0) }
multi method tweak (:exec(:$x)!) { self.mixin($x ?? ::x1 !! ::x0) }
+ multi method tweak (:val(:$v)!) { self.mixin($v ?? ::v1 !! ::v0) }
multi method tweak (:words(:$w)!) { self.mixin($w ?? ::w1 !! ::w0) }
multi method tweak (:quotewords(:$ww)!) { self.mixin($ww ?? ::ww1 !! ::ww0) }

0 comments on commit 77327a4

Please sign in to comment.