File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ p=. _This files lists all changes in the CodeRay library since the 0.9.8 release
7
7
h2. Changes in 1.0.9
8
8
9
9
* Fix Ruby scanner: Ruby 1.9 hash syntax @{ key: value }@ is highlighted correctly. [GH #106, thanks to Seth Vargo]
10
+ * Fix HTML scanner: Accept DTDs. [GH #83]
10
11
11
12
h2. Changes in 1.0.8
12
13
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def scan_tokens encoder, options
101
101
when :initial
102
102
if match = scan ( /<!--(?:.*?-->|.*)/m )
103
103
encoder . text_token match , :comment
104
- elsif match = scan ( /<!DOCTYPE( ?:.*?>|.*)/m )
104
+ elsif match = scan ( /<!( \w +)( ?:.*?>|.*)| \] > /m )
105
105
encoder . text_token match , :doctype
106
106
elsif match = scan ( /<\? xml(?:.*?\? >|.*)/m )
107
107
encoder . text_token match , :preprocessor
You can’t perform that action at this time.
0 commit comments