summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Lexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Sencha-lang/Lexer.cpp')
-rw-r--r--Sencha-lang/Lexer.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/Sencha-lang/Lexer.cpp b/Sencha-lang/Lexer.cpp
index 4c7327b..89f7262 100644
--- a/Sencha-lang/Lexer.cpp
+++ b/Sencha-lang/Lexer.cpp
@@ -106,8 +106,6 @@ pair<string, Token> Lexer::parse_token(string line)
{
string token_value = "";
unsigned int i;
-
-
for(i=0; i< line.size(); i++)
{
if(line[i] == '#')
@@ -115,10 +113,8 @@ pair<string, Token> Lexer::parse_token(string line)
i++;
while(line[i] != '\n' && i < line.size()) i++;
break;
- }
-
+ }
if(token_value == "" && isspace(line[i])) continue;
-
if(isdigit(line[i]) || line[i] == '-')
{
token_value += line[i++];
@@ -128,7 +124,6 @@ pair<string, Token> Lexer::parse_token(string line)
else break;
}
}
-
if(line[i] == '\"')
{
token_value += line[i++];
@@ -185,7 +180,6 @@ bool Lexer::is_keyword(string value)
bool Lexer::is_punctuation(char c)
{
-
for(unsigned int i=0; i< punctuation.size(); i++)
{
if(c == punctuation[i]) return true;