aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/naive_parser.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/naive_parser.rs b/src/naive_parser.rs
index ecf170a..2626209 100644
--- a/src/naive_parser.rs
+++ b/src/naive_parser.rs
@@ -53,6 +53,8 @@ impl<R: Reader + Position<O>, O: Offset, E: Emitter<O>> Iterator for NaiveParser
type Item = Result<E::Token, R::Error>;
fn next(&mut self) -> Option<Self::Item> {
+ // A proper parser would follow the steps described under section '13.2.6 Tree construction'
+ // of the spec. Since this parser is naive, we directly return the token instead.
self.tokenizer.next()
}
}