diff --git a/etk-asm/src/parse/asm.pest b/etk-asm/src/parse/asm.pest index 2ddb1770..3547fa19 100644 --- a/etk-asm/src/parse/asm.pest +++ b/etk-asm/src/parse/asm.pest @@ -60,7 +60,7 @@ gt = { ">" } lt = { "<" } gte = { ">=" } lte = { "<=" } -hardfork_name = { string_char* } +hardfork_name = { ASCII_ALPHA* } string = @{ "\"" ~ string_char* ~ "\"" } string_char = _{ "\\\\" | "\\\"" | (!"\\" ~ !"\"" ~ ANY) } diff --git a/etk-asm/src/parse/macros.rs b/etk-asm/src/parse/macros.rs index e02881c7..58fd75eb 100644 --- a/etk-asm/src/parse/macros.rs +++ b/etk-asm/src/parse/macros.rs @@ -53,8 +53,8 @@ pub(crate) fn parse_builtin(pair: Pair) -> Result { let mut directive = inner.into_inner(); let operator = match directive.next() { Some(operator) => { - let operator = operator.as_str().into(); - Some(operator) + let op = operator.as_str().into(); + Some(op) } None => None, };