Skip to content

Commit

Permalink
fixing the ident that was causing me issues but no one else :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevan Little committed Apr 9, 2013
1 parent 041c1a3 commit 62f1c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/org/moe/parser/MoeProductions.scala
Expand Up @@ -212,7 +212,7 @@ trait MoeProductions extends MoeLiterals with JavaTokenParsers with PackratParse
*********************************************************************
*/

def identifier = ident
def identifier = """[a-zA-Z_][a-zA-Z0-9_]*""".r
def namespaceSeparator = "::"
def namespacedIdentifier = rep1sep(identifier, namespaceSeparator) ^^ { _.mkString(namespaceSeparator) }

Expand Down Expand Up @@ -259,7 +259,7 @@ trait MoeProductions extends MoeLiterals with JavaTokenParsers with PackratParse
case "@" ~ array ~ index_expr ~ "=" ~ value_expr => ArrayElementLvalueNode("@" + array, index_expr, value_expr)
}

def hashElementAssignment = hash_index_rule ~ "=" ~ expression <~ statementDelim ^^ {
def hashElementAssignment = hash_index_rule ~ "=" ~ expression <~ statementDelim ^^ {
case "%" ~ hash ~ key_expr ~ "=" ~ value_expr => HashElementLvalueNode("%" + hash, key_expr, value_expr)
}

Expand Down

0 comments on commit 62f1c22

Please sign in to comment.