From 7fd577f8c2959902c4eb79d3c20b70a274e41618 Mon Sep 17 00:00:00 2001 From: murphy Date: Fri, 26 Mar 2010 03:18:12 +0000 Subject: Cleanups for C, C++, CSS, Delphi, Groovy, Java, PHP, Python, RHTML, XML, and YAML scanners. --- lib/coderay/scanners/rhtml.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/coderay/scanners/rhtml.rb') 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 -- cgit v1.2.1