Skip to content
Snippets Groups Projects
Commit 0e9f31be authored by Lukas Stadler's avatar Lukas Stadler
Browse files

allow backslash at end of line (during parsing)

parent b318829c
Branches
No related tags found
No related merge requests found
......@@ -73,6 +73,7 @@ public class ParserGeneration {
"allow multiple semicolons in {}",
"allow .. as identifier",
"rename Operator class",
"remove FieldAccess, small refactorings"
"remove FieldAccess, small refactorings",
"allow backslash at line end"
};
}
......@@ -746,6 +746,7 @@ fragment ESCAPE [StringBuilder buf]
| '\'' { buf.append('\''); }
| ' ' { buf.append(' '); }
| '\\' { buf.append('\\'); }
| '\n' { buf.append('\n'); }
| a = OCT_DIGIT b = OCT_DIGIT c = OCT_DIGIT { buf.append(ParseUtil.octChar($a.text, $b.text, $c.text)); }
| a = OCT_DIGIT b = OCT_DIGIT { buf.append(ParseUtil.octChar($a.text, $b.text)); }
| a = OCT_DIGIT { buf.append(ParseUtil.octChar($a.text)); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment