summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/_map.rb
Commit message (Collapse)AuthorAgeFilesLines
* Major rewrite of encoders to support IO output; fixed some minor scanner ↵Kornelius Kalnbach2011-08-191-2/+2
| | | | bugs; cleanups; dropped NitroXHTML scanner; improved tests
* add :erb as Ruby scanner aliasKornelius Kalnbach2011-07-261-13/+14
|
* various fixes and cleanups in CodeRay's helpersmurphy2011-05-211-2/+3
|
* Code cleanup.murphy2010-11-211-3/+3
|
* Cleanup of scanner map:murphy2010-03-261-2/+1
| | | | | | - removed :h - it's just a file extension, not a language name - removed :ecma - that's the name of an association, not a language - added :patch as an alias for :diff
* New Scanner: *C++* (#76)!murphy2009-10-191-1/+3
| | | | | | There's a problem with the ternary operator (?:) and labels which needs to be fixed in C, C++ and PHP scanners. I'll get to that soon.
* New: *PHP and SQL Scanners*murphy2009-04-201-4/+8
| | | | | | | | * Both not well tested yet, preview versions. * Some example code for both languages. * PHP scanner original by Stefan Walk. * SQL scanner using code by Keith Pitt and Josh Goebel.
* Added js alias for JavaScript.murphy2009-01-041-0/+1
|
* New: *YAML* (#53). Preparing for version 0.8.1.murphy2008-10-201-1/+2
| | | | | | | | | | | | | | * Based on the YAML scanner from Jamis Buck's Syntax lib. * Some YAML examples from Ruby gems. * Doesn't handle string yet; alpha state. More changes: * coderay_suite: new parameter "fast" makes testing faster (for development). * Changed the title of HTML page output (Page Encoder). * FileType: Added new file types. * cYcnus style: simplified some token group styles. * Cleanup in CSS and HTML Scanners.
* Added more file extensions to Scannersmurphy2008-09-161-1/+1
| | | | | | | * Added file_extensions to Delphi, XML, Debug, Scheme, and NitroXHTML scanners. * Removed obsolete extension declarations from Scanner test suites. * Minor cleanups.
* Changed error handling of all scanners: :error tokens are OK now, even in ↵murphy2006-07-111-14/+15
| | | | | | | | | | | | | 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-9/+9
|
* Re-indented everything. Sorry to break the blame chain.murphy2006-04-161-11/+11
|
* Large update: Scanners for HTML, RHTML and Nitro-XHTML added.murphy2006-04-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Added HTML scanner!murphy2006-04-041-1/+3
| | | | | | | Added test/html/suite.rb and tolkien.in.html test. Benchmark produces inline line numbers now. Minor changes to Ruby and C scanners. Rakefile: unit tests now in -d mode.
* helpers/plugin.rb: New plugin mapping systemmurphy2005-11-061-0/+10
_maps added; demos adjusted TODO updated