ion-docs icon indicating copy to clipboard operation
ion-docs copied to clipboard

Unify definition of common escapes across strings and clobs

Open mijamo911 opened this issue 8 years ago • 0 comments

For strings:

common_escape ::= '' ( 'a' | 'b' | 't' | 'n' | 'f' | 'r' | 'v' | '?' | '0' | '' | '/' | 'U' | 'u' | 'x' )

For clobs:

common_escape ::= '' ( 'a' | 'b' | 't' | 'n' | 'f' | 'r' | 'v' | '?' | '0' | '' | '/' | 'x' )

Because the names are the same and they're defined just a few paragraphs apart, it isn't immediately obvious that the escapes differ. Also "common" implies that they are, well, common. I think it would make more sense to make the clob definition common_escape and move \u and \U into a separate unicode_escape production.

mijamo911 avatar Jun 08 '16 23:06 mijamo911