From 8afb32dd8813da6798d030414f416e6a35f1368e Mon Sep 17 00:00:00 2001 From: otya128 Date: Sat, 10 Dec 2016 17:25:41 +0900 Subject: [PATCH] Fix #CONSTANT --- SMILEBASIC/parser.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SMILEBASIC/parser.d b/SMILEBASIC/parser.d index 9bbe77c..bd3e8f9 100644 --- a/SMILEBASIC/parser.d +++ b/SMILEBASIC/parser.d @@ -252,7 +252,8 @@ class Lexical { //ラベル(もしくは文字列) wstring iden; - if (c == '@') + bool isLabel = c == '@'; + if (isLabel) iden ~= c; i++; for(;i < code.length;i++) @@ -264,7 +265,7 @@ class Lexical } iden ~= c; } - if (c == '@') + if (isLabel) { token = Token(TokenType.Label, Value(iden)); }