Commit b0abd0df authored by Him188's avatar Him188

Skip field when preparing next head

parent bfcb8606
...@@ -206,6 +206,7 @@ private class JceInput( ...@@ -206,6 +206,7 @@ private class JceInput(
current.tag > tag -> null // tag 大了,即找不到 current.tag > tag -> null // tag 大了,即找不到
current.tag == tag -> current // 满足需要. current.tag == tag -> current // 满足需要.
else -> { // tag 小了 else -> { // tag 小了
skipField(current.type)
check(prepareNextHead()) { "cannot skip to tag $tag, early EOF" } check(prepareNextHead()) { "cannot skip to tag $tag, early EOF" }
skipToHeadOrNull(tag) skipToHeadOrNull(tag)
} }
......
Markdown is supported
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