Mercurial > repos > tabletprog
comparison modules/parser.tp @ 245:3590ecca6bc9
Fix handling of unescaped tabs in string literals in new parser
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 06 Jan 2014 01:03:18 -0800 |
parents | ae5188be523e |
children | 8c81afd6d2d3 |
comparison
equal
deleted
inserted
replaced
244:ae5188be523e | 245:3590ecca6bc9 |
---|---|
283 pos <- pos + 1 | 283 pos <- pos + 1 |
284 } | 284 } |
285 if: inverted { | 285 if: inverted { |
286 old <- out | 286 old <- out |
287 out <- "" | 287 out <- "" |
288 //skip control characters for now | 288 cur <- 0 |
289 cur <- 32 | |
290 while: { cur < 256 } do: { | 289 while: { cur < 256 } do: { |
291 notfound <- true | 290 notfound <- true |
292 idx <- 0 | 291 idx <- 0 |
293 len <- (old length) | 292 len <- (old length) |
294 while: { notfound && idx < len } do: { | 293 while: { notfound && idx < len } do: { |