Skip to content

Commit

Permalink
fix rule for quoteRegexOp
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashk committed Jun 10, 2013
1 parent 45e0d83 commit ad53c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/org/moe/parser/MoeProductions.scala
Expand Up @@ -327,7 +327,7 @@ trait MoeProductions extends MoeLiterals with JavaTokenParsers with PackratParse
case "qx" ~ expr => SubroutineCallNode("system", splitString(expr))
case "q" ~ expr => StringLiteralNode(expr)
}
def quoteRegexOp = "q[qrwx]?".r ~ quotedString ~ opt(regexModifiers) ^^ {
def quoteRegexOp = "qr" ~ quotedString ~ opt(regexModifiers) ^^ {
case "qr" ~ expr ~ Some(flags) => MatchExpressionNode(RegexLiteralNode(expr), flags)
case "qr" ~ expr ~ None => MatchExpressionNode(RegexLiteralNode(expr), StringLiteralNode(""))
}
Expand Down

0 comments on commit ad53c51

Please sign in to comment.