diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2016-06-04 13:59:09 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2016-06-04 13:59:09 +0200 |
commit | 3e10d565f99025bdca003cc8fbd98d3260ae451a (patch) | |
tree | 85cd39a0101139a193b4d98ba8d0129a83884302 /lib/coderay/scanners.rb | |
parent | 0b19ccfa96e1c7e4999e6e2619ae0b266b54402a (diff) | |
parent | 4c7bedc3bf2392444f62e90b7b8dc91d1a2effbb (diff) | |
download | coderay-3e10d565f99025bdca003cc8fbd98d3260ae451a.tar.gz |
Merge branch 'master' into possible-speedups
Diffstat (limited to 'lib/coderay/scanners.rb')
-rw-r--r-- | lib/coderay/scanners.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/coderay/scanners.rb b/lib/coderay/scanners.rb new file mode 100644 index 0000000..3c7e594 --- /dev/null +++ b/lib/coderay/scanners.rb @@ -0,0 +1,27 @@ +require 'strscan' + +module CodeRay + + autoload :WordList, coderay_path('helpers', 'word_list') + + # = Scanners + # + # This module holds the Scanner class and its subclasses. + # For example, the Ruby scanner is named CodeRay::Scanners::Ruby + # can be found in coderay/scanners/ruby. + # + # Scanner also provides methods and constants for the register + # mechanism and the [] method that returns the Scanner class + # belonging to the given lang. + # + # See PluginHost. + module Scanners + + extend PluginHost + plugin_path File.dirname(__FILE__), 'scanners' + + autoload :Scanner, CodeRay.coderay_path('scanners', 'scanner') + + end + +end |