summaryrefslogtreecommitdiff
path: root/lib/coderay
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed a minor bug in the YAML scanner.murphy2009-04-221-1/+2
|
* Cleanups and minor fixes to PHP scanner (issue #36).murphy2009-04-221-25/+18
|
* More cleanup.murphy2009-04-221-4/+4
|
* SQL scanner cleanup (issue #33).murphy2009-04-221-8/+11
| | | | | * Increased size of the test suite random samples.
* Improved Python scanner (issue #41).murphy2009-04-223-19/+50
| | | | | | | | * fixed numeric literals * better Python 3 support * bugfixes, optimizations * added two more test files
* Lots of improvements for the PHP scanner.murphy2009-04-221-105/+126
|
* Many improvements to PHP Scanner.murphy2009-04-202-112/+219
| | | | | | | | * added lots of built-in functions, constants, syntax rule fixes... * automatic HTML/PHP document recognition; experimental! * cYcnus style adjusted; inline_delimiter outside of token group has a style now. * clean-up still not finished
* FIXED: CaseIgnoringWordList respects default value (closes #97).murphy2009-04-201-0/+1
| | | | | * Test cases added.
* New: *PHP and SQL Scanners*murphy2009-04-204-4/+456
| | | | | | | | * 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.
* Experimental Unicode support for Scanners in Ruby 1.9.murphy2009-04-202-2/+17
| | | | | | | * Python scanner uses it for idents. * Scanner#column method needed to be fixed for multibyte characters because StringScanner#pos still works on bytes.
* Updated some comments for XML and HTML encoder.murphy2009-04-202-1/+1
| | | | | | * XML encoder is actually broken! REXML fault? * Firefox can handle long HTML tables now.
* New: *JSON Encoder*murphy2009-04-201-0/+19
| | | | | Very simple. Not streamable yet.
* Java scanner:murphy2009-04-142-5/+7
| | | | | | | | | | | * Fixed test after r305 broke it. * [FIXED] Save last_token_dot state through comments. C scanner: * Added file_extension declaration. ** All scanners should have this. * Code cleanup.
* New: *Python Scanner* (feature #41)murphy2009-04-142-14/+221
| | | | | | | | | | | | | | | | * Based on pygment's implementation. * The goal is to highlight both Python 2 and 3. ** print and exec will need special treatment. * Still needs work; see TODOs in the code. * Example files: PLEAC, pygments. ** The pygments.unistring code has very long lines which bother TextMate, so I put this one in a separate file. * Rating: 1 / 5 stars, "Poor support", because of problems with numeric literals. * Added .py, .pyw and .py3 to FileType. Else: * Sorted lines in FileType::TypeFromExt.
* Fixed generate:scanner task; it now also sets the file_extension.murphy2009-04-141-0/+1
| | | | | | | For example, to create a stub for the Python Scanner, I can use: rake generate:scanner NAME=python BASE=c EXT=py
* Added a :title option for the HTML Encoder. Closes #55.murphy2009-04-142-2/+18
|
* JavaScript scanner: Fixed string keys (closes #85).murphy2009-02-201-11/+10
|
* Removed subversion $Id$ lines.murphy2009-02-206-12/+0
|
* Java scanner highlights interface declarations as :class.murphy2009-02-201-1/+1
|
* Fixed a bug in for_redcloth.rb (closes #87).murphy2009-02-181-0/+1
| | | | | | * No more closing PRE tags in RedCloth output. * Added j, j19, and test:functional:all tasks.
* Fixed CSS scanner (closes #72).murphy2009-02-061-6/+28
| | | | | | | * handles url(...) outside of blocks * handles @media * handles [attribute=selectors] (too simple, added TODO)
* Updated version number (to 0.9.0) and gem information.murphy2009-02-061-1/+1
|
* Ruby scanner: Even more fixes for control and meta escape sequences.murphy2009-02-061-9/+14
| | | | | * I think I got it right this time.
* Ruby scanner: Fixed rarely used \c, \C-, and \M- escape sequences.murphy2009-02-052-1/+2
| | | | | | | * JavaScript scanner: elaborate a comment * SimpleRegexpScanner: Just some testing with the Ruby stack. * coderay-lib.tmproj: I should just remove it from the repo...
* Fixed a Ruby 1.8 compatibility bug in Groovy Scanner.murphy2009-01-221-1/+1
| | | | | * Also added jruby19 task (jruby --1.9 mode).
* New feature: HTML encode option :highlight_lines. See documentation.murphy2009-01-223-1/+23
| | | | | | * The scanner test suite uses it and highlights the lines that differ after a failed complete test in *.actual.html.
* Fixed JavaScript scanner, highlighting of strings as keys.murphy2009-01-221-4/+12
|
* Updated Groovy Scanner (feature #60).murphy2009-01-221-33/+57
| | | | | | | * Code inside ${...} is highlighted; works nested. * various minor bugfixes * Some string related problems remain. Groovy is strange!
* Updated cYcnus style (grayscale colors).murphy2009-01-131-5/+5
|
* Plugin.helper can be used to load helpers from other plugins using the ↵murphy2009-01-131-1/+9
| | | | 'plugin/helper' syntax.
* New: *Groovy Scanner* (feature #60)murphy2009-01-132-0/+249
| | | | | | | | | | | * It inherits from Java Scanner, re-using some constants. * Thanks to Stefan Weinmann for helping me with Groovy. * PLEAC code used for testing. * Some issues with remain with strings and regexps. * Rating: 2 / 5 stars, "Basic support" * Added .groovy and .gvy to FileType. * CodeRay now supports a language that pygments doesn't support ;-)
* Java Scanner: remove :regexp cases, use :pre_type for built-in types.murphy2009-01-131-10/+3
|
* Ruby Scanner: Shebang comments are highlighted as :doctype.murphy2009-01-131-0/+4
|
* Fixed a bug in Ruby scanner that broke tests with JRuby.murphy2009-01-111-1/+2
|
* Fixed documentation, moved README into lib folder.murphy2009-01-051-1/+1
|
* Added js alias for JavaScript.murphy2009-01-041-0/+1
|
* Made plugin ids case-insensitive.murphy2009-01-011-1/+1
| | | | | With this change, upper case lang names are allowed like 'C'.
* Completed YAML Scanner (closes #34).murphy2009-01-015-28/+38
| | | | | | | | | | | | | 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.
* JRuby fixes.murphy2008-12-251-2/+3
|
* Fixes for Ruby 1.9.murphy2008-12-253-54/+60
|
* Improved YAML Scanner (ticket #34).murphy2008-11-072-11/+35
| | | | | | * Added more YAML example files (website, database). * Minor code cleanup in Scanner.
* Fixed tests and YAML Scanner (#34)murphy2008-10-201-1/+1
| | | | | * The last commit (r262) also belongs to ticket #34.
* New: *YAML* (#53). Preparing for version 0.8.1.murphy2008-10-207-9/+126
| | | | | | | | | | | | | | * 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.
* New: *JSON* (closes #53). Version 0.8 is near!murphy2008-10-082-5/+114
| | | | | | | | | | | | * Simple and really nice scanner (I think), produces colorful output. * Checked against strange examples from Ruby's JSON lib. More changes: * Changed version number. Finally! * Added some token styles for :key token group. * cYcnus style: chars inside of strings are highlighted purple instead of blue. * murphy style needs work.
* New: *Simple Diff Scanner* (closes #22).murphy2008-09-3010-14/+188
| | | | | | | | | | | | | | * Highlights unified diffs, especially like the ones svn diff outputs. * Changes to make highlighting of whole lines were necessary. * I added two example files. More changes: * Added token classes :head, :delete, :insert, and :change along with styles. * Added two new special token types: :begin_line and :end_line. They mark token groups that explicitly span whole lines and should be highlighted as such. * The HTML encoder converts these new tokens to DIVs. May need more work. * The Debug Encoder uses square brackets for line tokens. * Some cleanups.
* Optimized CSS styles, improved coderay_suite, new HTML test.murphy2008-09-241-1/+1
| | | | | | | * CSS styles are shortened more to optimize HTML output. * Added a longer example file for the HTML Scanner. * coderay_suite prints more accurate and sensible benchmarks.
* New: *Java Scanner* (closes #42).murphy2008-09-217-20/+620
| | | | | | | | | | | | | | | | | | | * Based on JavaScript, does a good job, but may need more polish. * Java::BuiltinTypes::List is a helper constant that contains 2389 Java types. ** The list was generated from TextMate's Java bundle with the help of SimpleRegexpScanner. * I added the JRuby core classes as example code for testing (1.8 MB) JavaScript Scanner: * Fixed recognition of floats and algebraic signs. ** Still needs work - we need to distinguish i-1 from i+-1. More changes: * New: "SimpleRegexpScanner":http://murfy.de/simple-regexp-scanner * Added new token class :annotation along with CSS styles. ** Should be useful for Python, too. * coderay_suite warns if no scanner was found for this language. * PluginHost#default can be called without parameter (will return default id)
* New: *CSS Scanner* (closes #29).murphy2008-09-183-1/+188
| | | | | | | | | | * Based on Stefan Walk's implementation, with fixes, enhancements and speedups. * It seems to be fairly fast and highlights nicely. * I added the styles for Ignis Draconis, S5, and YUI as example code for testing. More changes: * Added three new token classes, :important, :pseudo_class, and :value, along with CSS styles.
* New: *JavaScript Scanner* (closes #23).murphy2008-09-167-10/+214
| | | | | | | | | | | * It's quite good and fast, but still a beta. * I included Prototype and script.aculo.us as example code for testing. More changes: * Added two new token classes, :keyword and :key, along with CSS styles. ** Actually, we should use :keyword for most scanners that now use :reserved. * HTML Encoder: The CSS parser understands multiple selectors separated by commas.
* Added more file extensions to Scannersmurphy2008-09-166-2/+6
| | | | | | | * Added file_extensions to Delphi, XML, Debug, Scheme, and NitroXHTML scanners. * Removed obsolete extension declarations from Scanner test suites. * Minor cleanups.