diff options
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 |