diff options
author | murphy <murphy@rubychan.de> | 2009-01-01 03:19:28 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2009-01-01 03:19:28 +0000 |
commit | c9eac585f167788dd590db06776b132923455a93 (patch) | |
tree | e4f8ade4d74b66fba6062f9d7be20c9454d777fc /lib/coderay/scanners/html.rb | |
parent | b9c0dd7c02467e633e195ef97e0f4748e588e799 (diff) | |
download | coderay-c9eac585f167788dd590db06776b132923455a93.tar.gz |
Completed YAML Scanner (closes #34).
YAML Scanner:
* Added another example (multiline).
* Added multiline string recognition.
* This should be enough for most people.
Else:
* New method: Scanner#column (very useful and fast!)
* Added new token type :doctype, used also by HTML scanner.
* coderay_suite: minor output tweaks.
Diffstat (limited to 'lib/coderay/scanners/html.rb')
-rw-r--r-- | lib/coderay/scanners/html.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/html.rb b/lib/coderay/scanners/html.rb index bb7ad3a..1f4d8fe 100644 --- a/lib/coderay/scanners/html.rb +++ b/lib/coderay/scanners/html.rb @@ -63,7 +63,7 @@ module Scanners if scan(/<!--.*?-->/m) kind = :comment elsif scan(/<!DOCTYPE.*?>/m) - kind = :preprocessor + kind = :doctype elsif scan(/<\?xml.*?\?>/m) kind = :preprocessor elsif scan(/<\?.*?\?>|<%.*?%>/m) |