Skip to content
Commit 1744e1da authored by Igor Kushnir's avatar Igor Kushnir
Browse files

findClose: ignore other bracket types within non-angle brackets

Unreliable distinguishing of angle brackets from operators causes less
wrong parsing now.

Remove no longer used findClose() public API.

Additional improvements:
* return str.size() rather than -1 from findClosing*() to avoid checking
  (pos == -1) after calling these functions;
* check depth == 0 only after decrementing depth.
parent 911564b8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment