diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-09-10 23:06:22 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-09-11 11:17:41 -0700 |
commit | 23c24d88401a4dbb8319c8c1fc6bbb0c44fb29cb (patch) | |
tree | d1f6d03c231a0b7e52be658fd587c9f9b9650c21 /data | |
parent | 5f56a1988ff8edfc020c97e37dbf834b499157d6 (diff) |
Added last_closer to Inline object.
This helps us avoid unneeded backtracking in pathological input
of the form:
*a
**a
*a
**a
*a
etc.
If we get to position k without finding a closing delimiter,
then backtrack to 1, we can assume we won't find a closing
delimiter when parsing forward again.
This could no doubt be polished up, e.g. by making it sensitive
to the kind of delimiter.
Diffstat (limited to 'data')
0 files changed, 0 insertions, 0 deletions