Skip to content

Commit c8a555d

Browse files
cirrasfourls
authored andcommitted
Improve handling of caret-notation character escapes in text literals
1 parent bc27d6e commit c8a555d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

delphi-frontend/src/main/java/au/com/integradev/delphi/antlr/ast/node/TextLiteralNodeImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private String createSingleLineValue() {
139139
break;
140140

141141
case ESCAPED_CHARACTER:
142-
imageBuilder.append(child.getImage());
142+
imageBuilder.append((char) ((child.getImage().charAt(0) + 64) % 128));
143143
break;
144144

145145
default:

0 commit comments

Comments
 (0)