Skip to content

Commit ae73af9

Browse files
committed
rename main to vlang_lexer
1 parent 0fff02b commit ae73af9

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

ilexer.v

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,9 @@ fn lex(self &ILexer, start_pos usize, length_doc isize, init_style int, p_access
380380
lexer.state = LexState.comment_line
381381
} else if ch == `/` && lexer.next_char == `*` {
382382
lexer.state = LexState.comment_block
383+
println('++nested_comment_block: ${lexer.nested_comment_block}')
383384
lexer.nested_comment_block++
385+
println('==nested_comment_block: ${lexer.nested_comment_block}')
384386
} else if ch == `"` || ch == `'` || ch == `\`` {
385387
lexer.state = LexState.strings
386388
lexer.string_starts_with = ch
@@ -411,9 +413,13 @@ fn lex(self &ILexer, start_pos usize, length_doc isize, init_style int, p_access
411413
.comment_block {
412414
// TODO: nested comment blocks
413415
if ch == `/` && lexer.next_char == `*` {
416+
println(' ++already in nested_comment_block: ${lexer.nested_comment_block}')
414417
lexer.nested_comment_block++
418+
println(' ==already in nested_comment_block: ${lexer.nested_comment_block}')
415419
} else if ch == `/` && lexer.previous_char == `*` {
420+
println(' --already in nested_comment_block: ${lexer.nested_comment_block}')
416421
lexer.nested_comment_block--
422+
println(' ~~already in nested_comment_block: ${lexer.nested_comment_block}')
417423
if lexer.nested_comment_block == 0 {
418424
lexer.next_state = LexState.default
419425
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)