File tree 5 files changed +251
-175
lines changed
5 files changed +251
-175
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- use crate :: code_block:: ColorCodeBlocks ;
2
1
use crate :: error:: Error ;
2
+ use crate :: ignore_block:: IgnoreBlocks ;
3
3
use crate :: token:: { Token , Tokenizer } ;
4
4
5
5
pub mod assign;
@@ -33,7 +33,7 @@ pub enum Command<'a> {
33
33
pub struct Input < ' a > {
34
34
all : & ' a str ,
35
35
parsed : usize ,
36
- code : ColorCodeBlocks ,
36
+ ignore : IgnoreBlocks ,
37
37
38
38
// A list of possible bot names.
39
39
bot : Vec < & ' a str > ,
@@ -64,7 +64,7 @@ impl<'a> Input<'a> {
64
64
Input {
65
65
all : input,
66
66
parsed : 0 ,
67
- code : ColorCodeBlocks :: new ( input) ,
67
+ ignore : IgnoreBlocks :: new ( input) ,
68
68
bot,
69
69
}
70
70
}
@@ -141,11 +141,11 @@ impl<'a> Input<'a> {
141
141
}
142
142
143
143
if self
144
- . code
145
- . overlaps_code ( ( self . parsed ) ..( self . parsed + tok. position ( ) ) )
144
+ . ignore
145
+ . overlaps_ignore ( ( self . parsed ) ..( self . parsed + tok. position ( ) ) )
146
146
. is_some ( )
147
147
{
148
- log:: info!( "command overlaps code; code : {:?}" , self . code ) ;
148
+ log:: info!( "command overlaps ignored block; ignore : {:?}" , self . ignore ) ;
149
149
return None ;
150
150
}
151
151
You can’t perform that action at this time.
0 commit comments