From 492699f419b1517b7dcfe0bedc7cd8002edae5df Mon Sep 17 00:00:00 2001 From: Stefan Marr Date: Mon, 16 Mar 2020 22:19:51 +0000 Subject: [PATCH] Added \0 control code, the zero character MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/som/compiler/Lexer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/som/compiler/Lexer.java b/src/som/compiler/Lexer.java index 207b3db..2c36527 100644 --- a/src/som/compiler/Lexer.java +++ b/src/som/compiler/Lexer.java @@ -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++;