Skip to content

Commit

Permalink
Added \0 control code, the zero character
Browse files Browse the repository at this point in the history
This is a missing common control character supported by Java, JavaScript,…

Added mostly to have a character that does not normally occur and can be used as control character in the SOM lexer.

Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Mar 17, 2020
1 parent ecdff3c commit 492699f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/som/compiler/Lexer.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ private void lexEscapeChar() {
case 'f': text.append("\f"); break;
case '\'': text.append('\''); break;
case '\\': text.append("\\"); break;
case '0': text.append("\0"); break;
// @formatter:on
}
bufp++;
Expand Down

0 comments on commit 492699f

Please sign in to comment.