fix(uplc): parser should accept single quote in var name and comments
This commit is contained in:
parent
b6f6064aaf
commit
58d98b3325
|
@ -353,11 +353,11 @@ peg::parser! {
|
||||||
}
|
}
|
||||||
|
|
||||||
rule ident() -> String
|
rule ident() -> String
|
||||||
= i:['a'..='z' | 'A'..='Z' | '0'..='9' | '_']+ {
|
= i:['a'..='z' | 'A'..='Z' | '0'..='9' | '_' | '\'']+ {
|
||||||
String::from_iter(i)
|
String::from_iter(i)
|
||||||
}
|
}
|
||||||
|
|
||||||
rule _ = [' ' | '\n']
|
rule _ = [' ' | '\n'] / "--" $([^ '\n']*) "\n"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue