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)); }