summaryrefslogtreecommitdiff
path: root/lib/coderay
Commit message (Collapse)AuthorAgeFilesLines
...
* All scanners revisited not to produce errors unless in DEBUG mode. [thx@Daniel]murphy2006-04-165-8/+26
| | | | | | | Fixed numerization for input not ending with \n. Added test cases in C scanner tests. Added WoNáDo as contributer for last Ruby scanner fix. Updated TODO.
* styles/_map.rb added. :cycnus is now default style. html/css.rb adjusted.murphy2006-04-154-40/+48
| | | | | | | | | | ROADMAP and TODO updated. Ruby scanner: Fixed a bug: Fancy strings don't allow \w delimiters. They _do_ also allow whitespace delimiters, but adding this would cause many scan errors. So I leave this bug unfixed.
* Large update: Scanners for HTML, RHTML and Nitro-XHTML added.murphy2006-04-1013-141/+400
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-045-11/+164
| | | | | | | 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.
* Ruby Scanner: Capital methods (Kernel#Array etc.) are now highlighted as idents.murphy2006-03-241-2/+2
| | | | | Tests adjusted. highlight.rb updated.
* HTML Encoder: inline numerization corrected.murphy2006-03-234-12/+21
| | | | | | | | New demo: demo/demo_html_list.rb. Some demos adjusted. C Scanner: error messages fixed. Rakefile: test_demos now in debug mode. test/suite.rb is using reusable Scanners now.
* CodeRay::Duo added for cool caching!murphy2006-03-215-25/+60
| | | | | | | | bench/caching.rb added t´for demonstrating this. HTML Encoder: creates unwrapped output by default (still problems with that.) Numerizing changed (doesn't try to prevent nesting errors) Speedup: "::String" is faster.
* Changed HTML encoder evil char handling (allowing for UTF-8 now.)murphy2006-03-161-5/+6
|
* HTML Encoder: hints fixed and improved. Still in progress.murphy2006-03-162-9/+13
| | | | | Documentation cleanups.
* Fixed HTML encoder again. (Run the test, baka!)murphy2006-03-161-1/+1
| | | | | | Added jarh.out.raydebug test output. Fixed a typo in Rakefile.
* Fixed HTML encoder.murphy2006-03-152-14/+13
| | | | | Changed HTML::CSS.load_stylesheet behaviour.
* HTML encoder improved (hint handling, :info_long)murphy2006-03-151-20/+28
| | | | Ignore latex encoder until it's finished.
* Deleted silly debug print.murphy2006-03-151-1/+1
|
* Ruby scanner fixed - nasty bug in ruby/patterns.rb.murphy2006-03-151-7/+7
| | | | | besetzung.in.rb test added. highlight.rb updated.
* Ruby scanner errors fixed.murphy2006-03-153-7/+7
| | | | | demo_dump and demo_encoder updated for new YAML version. Fixes in output.rb and numerization.rb
* WordList is now a first-class Class independent from CodeRay.murphy2006-02-201-95/+94
| | | | | I used it in my HTMLParser, so it became WordList instead of CodeRay::Scanners::Scanner::WordList. Some functionality was added and changed, too. Speed should be the same.
* plugin.rb: _map loading now without exceptions (doesn't produce rubygem ↵murphy2006-02-201-4/+5
| | | | | | warnings) test/ruby/quotes: second test case added
* Plugin documentation updated.murphy2005-12-131-0/+11
|
* scanners/ruby/patterns.rb:murphy2005-12-112-2/+2
| | | | | | | | Changed recognition of numerics + and - prefixes now belong to the number. tests and demos adjusted. helpers/plugin.rb: Typo in doc.
* Plugin System extended:murphy2005-12-107-62/+24
| | | | | | | | | | - helper method - path names are expanded encoders/html.rb, div.rb, span.rb, ruby.rb: - using new methods (fixes problems with rdoc and test tasks): renamed scanners/ruby/helper.rb to patterns.rb encoders/statistic.rb: sorting made deterministic (for unit testing)
* Some fixes for cYcnus style (capital Y makes problems)murphy2005-12-054-5/+5
| | | | | Fixes in the coderay_rdoc_template.
* New Style system added - still beta.murphy2005-11-138-124/+307
| | | | | | | | Demos adjusted coderay.rb, encoders/html.rb, encoders/div.rb adjusted. encoders/html/* files rebuild.
* plugin.rb cleanupmurphy2005-11-101-75/+82
| | | | | ROADMAP and TODO updated
* helpers/plugin.rb: New plugin mapping systemmurphy2005-11-063-2/+54
| | | | | | _maps added; demos adjusted TODO updated
* bench/bench.rb: Added SilverCity benchmarkingmurphy2005-11-054-5/+15
| | | | | | | | | | | | | | | | | demo/demo_load_encoder.rb enhanced demo/demo_load_scanner.rb added .outs added plugin.rb: Fixed load_all encoder.rb, scanner.rb adjusted helpers/word_list.rb: Fixed a bug in CaseIgnoringWordList.new TODO: Updated new ROADMAP coderay.rb: increased Version number added Version System documentation
* helpers/word_list.rb: enhanced doc a bit.murphy2005-11-051-0/+8
|
* helpers/word_list.rb:murphy2005-11-054-38/+30
| | | | | | | | new CaseIgnoringWordList class simplified implementation Performance gain should be small. Adjusted scanner.rb and scanners/delphi.rb
* scanner_helper.rb --> word_list.rbmurphy2005-11-051-0/+0
|
* scanner_helper.rb: more doc, re-indentedmurphy2005-11-051-59/+103
|
* New helper module scheme, step 3murphy2005-11-057-5/+5
|
* New helper module scheme, step 2murphy2005-11-054-524/+0
|
* New helper module scheme, step 2murphy2005-11-051-213/+0
|
* New helper module scheme, step 1murphy2005-11-055-0/+737
|
* First victim of the Demo Tests: Bugfix in tokens.rb!murphy2005-11-041-1/+1
|
* HTML Encoder Documentation updated (:list style)murphy2005-11-041-1/+1
|
* HTML highlighting:murphy2005-11-043-85/+126
| | | | | | | | | | | | | | | | | | html_css.rb: Bugfixes CSS style scanning went for wrong range moved some styles into the right place html_output.rb: numerization excluded templates renamed new LIST template html_numerization.rb (new): new :line_numbers style :list (beta) Benchmarking: Split Options into lines :list style for testing
* Version 0.4.6!murphy2005-10-291-2/+12
| | | | | | | | coderay.rb: Added highlight functions new demo/demo_highlight.rb encoders/helpers/html_output.rb: Improved stylesheet method Rakefile: smarter progress info on uploading
* encoders/html.rb: Improved Info hints; better error messages; fixed tab bug!murphy2005-10-291-5/+8
| | | | test/ruby: added new targets
* encoders/html.rb: Fixed documentation. (woah, RDoc!)murphy2005-10-291-16/+36
|
* scanners/ruby.rb: changed operator handling = fix and speedup.murphy2005-10-291-19/+23
| | | | Test fixtures adjusted.
* scanners/ruby.rb, ruby_helper.rb: Fixes, changes.murphy2005-10-292-19/+61
|
* encoder.rb: Added Encoder#file_extensionmurphy2005-10-295-22/+86
| | | | | | | | | plugin.rb: #load_plugin --> #load; no more debug messages encoders/html.rb: Documentation; hint system; moved NUMERIZABLE_WRAPPINGS to html_output.rb encoders/helpers/html_output.rb: made stylesheet a method; disabled code cell hint; fixed inline numerizing encoders/debug.rb: changed extension to 'raydebug' etc folder added included etc/raydebug.vim for cool vim highlighting
* demo/demo_server.rb: Debug mode.murphy2005-10-222-5/+5
| | | | | tokens.rb: orig_each alias deleted; using super now. scanners/ruby.rb: experimental Regexp/Fancy string recognition for "method /.../" cases.
* scanners/ruby.rb: fixed string inline codemurphy2005-10-164-11/+11
| | | | | encoders/helpers/html_css.rb and html_helper.rb: added :inline token encoders/helpers/html_output.rb: made wrapped_in an attr_accessor; fixed option handling in numerize!
* Two new encoders: debug and xml.murphy2005-10-047-39/+172
| | | | | | | | | | | | | | | | encoder.rb: new token handling encoders/statistic.rb: using new handling ruby_helper.rb: small improvements ruby.rb: - escapes in subtoken - Float detection changed - some multi-char operators are now scanned as one token - def and module definition handling changed bin/coderay: improved, new interface (still in progress) plugin.rb: more expressive load error message
* demo/coderay_demos.tar.gz: demos in a tgzmurphy2005-10-021-3/+9
| | | | | encoders/null.rb: speeded up by hardcoding to_proc.
* Demos updated, rewritten, enhanced, tested.murphy2005-10-018-164/+190
| | | | | | | | | | | | | | | | | Some code cleanups. Bugs fixed, scanner and encoder improved: count.rb: marked Streamable html_css.rb: style for inline numbers html.rb: changed options; :line_numbers_offset is now :line_number_start html_output.rb: offset for inline numbers fixed html.rb: token text no longer changed by gsub! while highlighting (this is even faster!) text.rb, plugin.rb: reindented ruby.rb: eleminated multiple assignments for speed tokens.rb: reindented, Tokens#to_s added, #<< returns self Plugin system: bugs fixed, error messages improved.
* Some demos updated.murphy2005-10-014-56/+33
| | | | Massive changes for HTML output layout.
* After merge with Plugin branch.murphy2005-09-293-369/+472
|
* Re-indented encoder.rb and scanner.rb.murphy2005-09-292-247/+263
|