afs commented on issue #1324: URL: https://github.com/apache/jena/issues/1324#issuecomment-1179205727
https://github.com/apache/jena/blob/3210f8b6096b5e13bf4e1b71803c262dea1703c8/jena-arq/Grammar/main.jj#L2713 There is _a lot_ of history here! It also has to align with the RDF data syntax Turtle. SPARQL has 4 string forms: 2 single quoted (using either `"` or `'`), 2 triple-quoted, multiline (using either `"""` or `'''`). The grammar is the `ifdef`'s for ARQ. ``` | < STRING_LITERAL_LONG1: <QUOTE_3S> ( ("'" | "''")? (~["'","\\"] | <ECHAR> | <UCHAR> ))* <QUOTE_3S> > ``` where `<ECHAR: "\\" ( "t"|"b"|"n"|"r"|"f"|"\\"|"\""|"'") >` and `UCHAR` is `\u` and `\U` haxe escapes (done by JavaCC only in SPARQL 1.1 form, not the ARQ). ``` | < #UCHAR: <UCHAR4> | <UCHAR8> > | < #UCHAR4: "\\" "u" <HEX> <HEX> <HEX> <HEX> > | < #UCHAR8: "\\" "U" <HEX> <HEX> <HEX> <HEX> <HEX> <HEX> <HEX> <HEX> > ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
