We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a2edcc commit 9975fcbCopy full SHA for 9975fcb
lib/coderay/scanners/html.rb
@@ -81,7 +81,7 @@ def scan_java_script encoder, code
81
end
82
83
def scan_tokens encoder, options
84
- state = @state
+ state = options[:state] || @state
85
plain_string_content = @plain_string_content
86
in_tag = in_attribute = nil
87
@@ -103,7 +103,7 @@ def scan_tokens encoder, options
103
encoder.text_token match, :doctype
104
elsif match = scan(/<\?xml(?:.*?\?>|.*)/m)
105
encoder.text_token match, :preprocessor
106
- elsif match = scan(/<\?(?:.*?\?>|.*)|<%(?:.*?%>|.*)/m)
+ elsif match = scan(/<\?(?:.*?\?>|.*)/m)
107
encoder.text_token match, :comment
108
elsif match = scan(/<\/[-\w.:]*>?/m)
109
in_tag = nil
0 commit comments