From 45e7f3cf970f5b81d6dd992f043702c45035dbf4 Mon Sep 17 00:00:00 2001 From: Steve Ramage Date: Wed, 22 Aug 2018 18:26:49 -0700 Subject: [PATCH] Update Simple.flex Changed the fallback character from . to [^] since this serves as a basis of other lexers. --- simple_language_plugin/src/com/simpleplugin/Simple.flex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple_language_plugin/src/com/simpleplugin/Simple.flex b/simple_language_plugin/src/com/simpleplugin/Simple.flex index e63022e88..89f80bc4b 100644 --- a/simple_language_plugin/src/com/simpleplugin/Simple.flex +++ b/simple_language_plugin/src/com/simpleplugin/Simple.flex @@ -41,4 +41,4 @@ KEY_CHARACTER=[^:=\ \n\t\f\\] | "\\ " ({CRLF}|{WHITE_SPACE})+ { yybegin(YYINITIAL); return TokenType.WHITE_SPACE; } -. { return TokenType.BAD_CHARACTER; } +[^] { return TokenType.BAD_CHARACTER; }