aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.cpp
diff options
context:
space:
mode:
authorgingerBill <ginger.bill.22@gmail.com>2016-08-19 23:35:09 +0100
committergingerBill <ginger.bill.22@gmail.com>2016-08-19 23:35:09 +0100
commit680274b6f1f1e36e27c94b4e60895338d413c84a (patch)
tree1d68b9062ab743950878b41fe2cb6f2e81157462 /src/tokenizer.cpp
parent745237459abb3fa91405fdba3895bd9f810bc9d2 (diff)
Implicit Context and #thread_local
Diffstat (limited to 'src/tokenizer.cpp')
-rw-r--r--src/tokenizer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp
index ceabdc645..68c8918d0 100644
--- a/src/tokenizer.cpp
+++ b/src/tokenizer.cpp
@@ -371,25 +371,25 @@ void tokenizer_skip_whitespace(Tokenizer *t) {
if (t->read_curr[0] == '/') { // Line comment //
while (t->curr_rune != '\n')
advance_to_next_rune(t);
- } else if (t->read_curr[0] == '{') { // (Nested) Block comment /{}/
+ } else if (t->read_curr[0] == '*') { // (Nested) Block comment /**/
isize comment_scope = 1;
for (;;) {
advance_to_next_rune(t);
if (t->curr_rune == '/') {
advance_to_next_rune(t);
- if (t->curr_rune == '{') {
+ if (t->curr_rune == '*') {
advance_to_next_rune(t);
comment_scope++;
}
}
- if (t->curr_rune == '}') {
+ if (t->curr_rune == '*') {
advance_to_next_rune(t);
if (t->curr_rune == '/') {
advance_to_next_rune(t);
comment_scope--;
}
}
- if (comment_scope == 0)
+ if (comment_scope <= 0)
break;
}
} else {