summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/nitro_html.rb
Commit message (Collapse)AuthorAgeFilesLines
* Changed error handling of all scanners: :error tokens are OK now, even in ↵murphy2006-07-111-125/+0
| | | | | | | | | | | | | debug mode, but token kind is nil unless assigned. Small fixes for C and Ruby scanners. Renamed local variable type to kind in Ruby scanner. Improved RHTML scanner to recognize -%> as delimiter. HTML encoder: improved handling of malformed token strings. Fixed PluginHost#inspect including docu. Scanner#raise_inspect also shows state if given.
* Big re-indenting - no more tabs!murphy2006-07-101-119/+119
|
* Re-indented everything. Sorry to break the blame chain.murphy2006-04-161-2/+4
|
* Large update: Scanners for HTML, RHTML and Nitro-XHTML added.murphy2006-04-101-0/+123
CSS style changes/enhancments (mainly the new background color for inline code, affects all Ruby code.) Demos and tests adjusted. Plugin: new PluginHost::default method. Scanner: - New setup method - ability to re-use a scanner - ability to keep the tokens - minor changes to token caching and string flattening Encoder: Error if token content is neither String nor Symbol. HTML encoder: - more warnings for unclosed tokens - output now UTF-8 Ruby Scanner: - bug: symbols before => now do not include =; {:foo=>bar} is valid Ruby code - try to close all open tokens - constants now all with specific namespace (for speed, I hope) Styles: new :entity/en class. Test suite now gives hinted HTML output.