fix(uplc): parser should accept single quote in var name and comments

This commit is contained in:
rvcas
2023-11-15 00:54:01 -05:00
committed by Lucas
parent b6f6064aaf
commit 58d98b3325

View File

@@ -353,11 +353,11 @@ peg::parser! {
}
rule ident() -> String
= i:['a'..='z' | 'A'..='Z' | '0'..='9' | '_']+ {
= i:['a'..='z' | 'A'..='Z' | '0'..='9' | '_' | '\'']+ {
String::from_iter(i)
}
rule _ = [' ' | '\n']
rule _ = [' ' | '\n'] / "--" $([^ '\n']*) "\n"
}
}