1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v2/vfmt2: more fixes

This commit is contained in:
Alexander Medvednikov
2020-02-18 03:28:39 +01:00
parent ecb0af36b3
commit ed01ab763c
4 changed files with 71 additions and 27 deletions

View File

@ -3208,6 +3208,7 @@ fn todo_remove() {
fn (p mut Parser) check_if_parser_is_stuck(parsing_cycle u64, parsing_start_ticks i64){
// QTODO
/*
if p.prev_stuck_token_idx == p.token_idx {
// many many cycles have passed with no progress :-( ...
eprintln('Parsing is [probably] stuck. Cycle: ${parsing_cycle:12ld} .')
@ -3224,4 +3225,5 @@ Please create a GitHub issue: https://github.com/vlang/v/issues/new/choose
}
}
p.prev_stuck_token_idx = p.token_idx
*/
}