@@ -5,12 +5,12 @@ import (
55 "github.com/viant/sqlparser/expr"
66)
77
8- //ParseLiteral parses literal
8+ // ParseLiteral parses literal
99func ParseLiteral (cursor * parsly.Cursor ) (* expr.Literal , error ) {
1010 return parseLiteral (cursor , true )
1111}
1212
13- //TryParseLiteral tries to parse literal
13+ // TryParseLiteral tries to parse literal
1414func TryParseLiteral (cursor * parsly.Cursor ) (* expr.Literal , error ) {
1515 return parseLiteral (cursor , false )
1616}
@@ -20,6 +20,7 @@ var literalTokens = []*parsly.Token{
2020 nextMatcher ,
2121 nullKeywordMatcher ,
2222 boolLiteralMatcher ,
23+ rawSingleQuotedStringLiteralMatcher ,
2324 doubleQuotedStringLiteralMatcher ,
2425 singleQuotedStringLiteralMatcher ,
2526 intLiteralMatcher ,
@@ -34,7 +35,7 @@ func parseLiteral(cursor *parsly.Cursor, shallRaiseInvalidToken bool) (*expr.Lit
3435 return nil , nil
3536 case nullKeyword :
3637 return expr .NewNullLiteral (match .Text (cursor )), nil
37- case singleQuotedStringLiteral , doubleQuotedStringLiteral :
38+ case singleQuotedStringLiteral , rawSingleQuotedStringLiteral , doubleQuotedStringLiteral :
3839 return expr .NewStringLiteral (match .Text (cursor )), nil
3940 case boolLiteral :
4041 return expr .NewBoolLiteral (match .Text (cursor )), nil
0 commit comments