Skip to content

Commit dd81bf3

Browse files
authored
Update string literal in java.lark
update the string literal to the character literal
1 parent 8de667b commit dd81bf3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

syncode/parsers/grammars/java.lark

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ boolean_literal: "true" | "false"
178178

179179
character_literal: /'([^'\r\n\\]|\\([btnfr"'\\0-7]|[0-3]?[0-7]{2})|\\u[0-9a-fA-f]{4})'/
180180

181-
string_literal: /".*?"/
181+
string_literal: /"([^"\r\n\\]|\\([btnfr"'\\0-7]|[0-3]?[0-7]{2})|\\u[0-9a-fA-f]{4})*"/
182182

183183
null_literal: "null"
184184

0 commit comments

Comments
 (0)