aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/construct/definition.rs2
-rw-r--r--src/construct/partial_label.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/construct/definition.rs b/src/construct/definition.rs
index 5e80a93..aca22a6 100644
--- a/src/construct/definition.rs
+++ b/src/construct/definition.rs
@@ -149,7 +149,7 @@ fn label_after(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
tokenizer.exit(TokenType::DefinitionMarker);
(
State::Fn(Box::new(
- tokenizer.go(space_or_tab_one_line_ending(), destination_before),
+ tokenizer.attempt_opt(space_or_tab_one_line_ending(), destination_before),
)),
None,
)
diff --git a/src/construct/partial_label.rs b/src/construct/partial_label.rs
index 2e8e950..1e4d7f2 100644
--- a/src/construct/partial_label.rs
+++ b/src/construct/partial_label.rs
@@ -181,7 +181,7 @@ fn label(tokenizer: &mut Tokenizer, code: Code, mut info: Info) -> StateFnResult
info.size += 1;
(State::Fn(Box::new(|t, c| label(t, c, info))), None)
}
- Code::Char('/') => {
+ Code::Char('\\') => {
tokenizer.consume(code);
info.size += 1;
if !info.data {