File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -153,11 +153,6 @@ def self.coderay_path *path
153
153
autoload :Encoders , coderay_path ( 'encoders' )
154
154
autoload :Styles , coderay_path ( 'styles' )
155
155
156
- # DSL Scanner
157
- autoload :RuleBasedScanner , coderay_path ( 'rule_based_scanner' )
158
- autoload :SingleStateRuleBasedScanner , coderay_path ( 'single_state_rule_based_scanner' )
159
- autoload :StateBasedScanner , coderay_path ( 'state_based_scanner' )
160
-
161
156
# convenience access and reusable Encoder/Scanner pair
162
157
autoload :Duo , coderay_path ( 'duo' )
163
158
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ module Scanners
21
21
plugin_path File . dirname ( __FILE__ ) , 'scanners'
22
22
23
23
autoload :Scanner , CodeRay . coderay_path ( 'scanners' , 'scanner' )
24
+
25
+ # DSL Scanners
26
+ autoload :RuleBasedScanner , CodeRay . coderay_path ( 'rule_based_scanner' )
27
+ autoload :SingleStateRuleBasedScanner , CodeRay . coderay_path ( 'single_state_rule_based_scanner' )
28
+ autoload :StateBasedScanner , CodeRay . coderay_path ( 'state_based_scanner' )
29
+ autoload :SimpleScanner , CodeRay . coderay_path ( 'simple_scanner' )
24
30
25
31
end
26
32
Original file line number Diff line number Diff line change 1
1
require 'set'
2
+ require 'coderay/simple_scanner_dsl'
2
3
3
4
module CodeRay
4
5
module Scanners
You can’t perform that action at this time.
0 commit comments