[
https://issues.apache.org/jira/browse/METRON-873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15979088#comment-15979088
]
ASF GitHub Bot commented on METRON-873:
---------------------------------------
Github user justinleet commented on the issue:
https://github.com/apache/incubator-metron/pull/542
What if I want to put a backslash character in my string? e.g. I want to
produce 'some \ string'.
I don't think this worked before, but it's particularly relevant because
now we're doing stuff with backslash. In particular, I don't think this worked
before because (and correct me if I'm wrong)
```
fragment SCHAR: ~['"\\\r\n];
```
This says that strings are NOT:
* Single Quote
* Double Quote
* Backslash
* Carriage Return
* Newline
Even escaping won't help this, because the backslash is outright disallowed
in strings. Is there a reason it's not allowe?
> Stellar string literals do not support quote escaping
> -----------------------------------------------------
>
> Key: METRON-873
> URL: https://issues.apache.org/jira/browse/METRON-873
> Project: Metron
> Issue Type: Improvement
> Reporter: Casey Stella
>
> Right now, in stellar, we cannot represent a string literal that contains
> 'foo' if the string is quoted with ' or "foo" if the string is quoted with ".
> This is unfortunate and should be corrected.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)