Add '%' back to the atom char set
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
parent
5dcefb2e5b
commit
19908abf4d
|
@ -76,7 +76,7 @@ let comment = ';' [^ '\n' '\r']*
|
||||||
let newline = '\r'? '\n'
|
let newline = '\r'? '\n'
|
||||||
let blank = [' ' '\t' '\012']
|
let blank = [' ' '\t' '\012']
|
||||||
let atom_char =
|
let atom_char =
|
||||||
[^ '%' ';' '(' ')' '"' ' ' '\t' '\r' '\n' '\000'-'\032' '\127'-'\255']
|
[^ ';' '(' ')' '"' ' ' '\t' '\r' '\n' '\000'-'\032' '\127'-'\255']
|
||||||
let digit = ['0'-'9']
|
let digit = ['0'-'9']
|
||||||
let hexdigit = ['0'-'9' 'a'-'f' 'A'-'F']
|
let hexdigit = ['0'-'9' 'a'-'f' 'A'-'F']
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ module Atom = struct
|
||||||
let rec loop s i len =
|
let rec loop s i len =
|
||||||
i = len ||
|
i = len ||
|
||||||
match String.unsafe_get s i with
|
match String.unsafe_get s i with
|
||||||
| '%' | '"' | '(' | ')' | ';' | '\000'..'\032' | '\127'..'\255' -> false
|
| '"' | '(' | ')' | ';' | '\000'..'\032' | '\127'..'\255' -> false
|
||||||
| _ -> loop s (i + 1) len
|
| _ -> loop s (i + 1) len
|
||||||
in
|
in
|
||||||
fun s ->
|
fun s ->
|
||||||
|
|
Loading…
Reference in New Issue