kenhuuu commented on code in PR #3401: URL: https://github.com/apache/tinkerpop/pull/3401#discussion_r3169201885
########## gremlin-language/src/main/antlr4/Gremlin.g4: ########## @@ -2500,6 +2520,26 @@ SignedInfLiteral // String Literals +// Character literal is a single character string with a 'c' suffix, modeled after printf's %c. +// Must appear before NonEmptyStringLiteral for longest-match priority. +CharacterLiteral + : '"' DoubleQuotedStringCharacter '"' 'c' + | '\'' SingleQuotedStringCharacter '\'' 'c' + ; + +// String literal with explicit 's' suffix. The suffix is optional (no suffix defaults to string), +// but can be used to force string interpretation for single-character values. +// Must appear before NonEmptyStringLiteral for longest-match priority. +StringSuffixLiteral + : '"' DoubleQuotedStringCharacters '"' 's' Review Comment: This is the newly added "s" suffix that is for strings which can be multicharacter. -- 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]
