Page MenuHomePhabricator

Further refine the Java syntax lexer for escaped strings
ClosedPublic

Authored by epriestley on Oct 25 2018, 4:32 PM.
Tags
None
Referenced Files
F19080579: D19763.id47198.diff
Dec 2 2025, 1:49 AM
F18837091: D19763.id47215.diff
Oct 27 2025, 4:21 AM
F18837090: D19763.id47198.diff
Oct 27 2025, 4:21 AM
F18837089: D19763.id.diff
Oct 27 2025, 4:21 AM
F18834103: D19763.diff
Oct 26 2025, 6:54 AM
F18809273: D19763.id47215.diff
Oct 19 2025, 12:32 PM
F18757613: D19763.id47198.diff
Oct 5 2025, 6:23 PM
F18752643: D19763.id.diff
Oct 4 2025, 3:58 PM
Subscribers
None

Details

Summary

Ref T13210. See PHI886. Previously, D19731 improved some behavior here, but didn't go quite far enough and we still got strings with \" wrong.

Parse backslash followed by anything, or any character except double quote or backslash.

(If this is still somehow wrong I can just copy one of the other lexers which is a little more complicated but gets this right.)

Test Plan

Screen Shot 2018-10-25 at 9.30.40 AM.png (591×275 px, 26 KB)

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable