File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ impl<'s> ScriptSource<'s> {
59
59
. char_indices ( )
60
60
. find_map ( |( i, c) | ( c != FENCE_CHAR ) . then_some ( i) )
61
61
. unwrap_or_else ( || input. eof_offset ( ) ) ;
62
+ let open_start = input. current_token_start ( ) ;
63
+ let fence_pattern = input. next_slice ( fence_length) ;
64
+ let open_end = input. current_token_start ( ) ;
62
65
match fence_length {
63
66
0 => {
64
67
return Ok ( source) ;
@@ -71,9 +74,6 @@ impl<'s> ScriptSource<'s> {
71
74
}
72
75
_ => { }
73
76
}
74
- let open_start = input. current_token_start ( ) ;
75
- let fence_pattern = input. next_slice ( fence_length) ;
76
- let open_end = input. current_token_start ( ) ;
77
77
source. open = Some ( open_start..open_end) ;
78
78
let Some ( info_nl) = input. find_slice ( "\n " ) else {
79
79
return Err ( FrontmatterError :: new ( format ! (
You can’t perform that action at this time.
0 commit comments