| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -730,10 +730,16 @@ static public String scrubComments(String what) { | |||
| 730 | 730 | throw new RuntimeException("Missing the */ from the end of a " + | |
| 731 | 731 | "/* comment */"); | |
| 732 | 732 | } | |
| 733 | - } else if (p[index] == '"' && index > 0 && p[index-1] != '\\') { | ||
| 733 | + | ||
| 734 | + // switch in/out of quoted region | ||
| 735 | + } else if (p[index] == '"') { | ||
| 734 | 736 | insideQuote = !insideQuote; | |
| 735 | 737 | index++; | |
| 736 | 738 | ||
| 739 | + // skip the escaped char | ||
| 740 | + } else if (insideQuote && p[index] == '\\') { | ||
| 741 | + index += 2; | ||
| 742 | + | ||
| 737 | 743 | } else { // any old character, move along | |
| 738 | 744 | index++; | |
| 739 | 745 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments