diff options
author | murphy <murphy@rubychan.de> | 2010-03-26 03:18:12 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-03-26 03:18:12 +0000 |
commit | 7fd577f8c2959902c4eb79d3c20b70a274e41618 (patch) | |
tree | de117473e8d308f08900514dfcf0c27e9acfea53 /lib/coderay/scanners/rhtml.rb | |
parent | cfa0257f846a01e6777e6e620751165410b328c8 (diff) | |
download | coderay-7fd577f8c2959902c4eb79d3c20b70a274e41618.tar.gz |
Cleanups for C, C++, CSS, Delphi, Groovy, Java, PHP, Python, RHTML, XML, and YAML scanners.
Diffstat (limited to 'lib/coderay/scanners/rhtml.rb')
-rw-r--r-- | lib/coderay/scanners/rhtml.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/coderay/scanners/rhtml.rb b/lib/coderay/scanners/rhtml.rb index 581f1f8..01fda8e 100644 --- a/lib/coderay/scanners/rhtml.rb +++ b/lib/coderay/scanners/rhtml.rb @@ -4,7 +4,7 @@ module Scanners load :html load :ruby - # RHTML Scanner + # Scanner for HTML ERB templates. class RHTML < Scanner include Streamable @@ -23,13 +23,13 @@ module Scanners )* ) (?: -?%> )? - /x + /x # :nodoc: START_OF_ERB = / <%(?!%) - /x + /x # :nodoc: - private + protected def setup @ruby_scanner = CodeRay.scanner :ruby, :tokens => @tokens, :keep_tokens => true |