Merge branch 'feature/lower-hex' into 'dev'

Support lowercase in hex bytes

See merge request ligolang/ligo!443
This commit is contained in:
Christian Rinderknecht 2020-02-20 19:38:55 +00:00
commit 6aae402cd0

View File

@ -580,7 +580,7 @@ let letter = small | capital
let ident = small (letter | '_' | digit)* let ident = small (letter | '_' | digit)*
let constr = capital (letter | '_' | digit)* let constr = capital (letter | '_' | digit)*
let attr = ident | constr let attr = ident | constr
let hexa_digit = digit | ['A'-'F'] let hexa_digit = digit | ['A'-'F' 'a'-'f']
let byte = hexa_digit hexa_digit let byte = hexa_digit hexa_digit
let byte_seq = byte | byte (byte | '_')* byte let byte_seq = byte | byte (byte | '_')* byte
let bytes = "0x" (byte_seq? as seq) let bytes = "0x" (byte_seq? as seq)