summaryrefslogtreecommitdiff
path: root/lib/coderay
Commit message (Collapse)AuthorAgeFilesLines
...
* Cleanups.murphy2010-01-061-2/+2
|
* New method Scanner#lang.murphy2010-01-011-0/+5
|
* Cleanup.murphy2010-01-011-1/+1
|
* Fixed: More file extensions for C++ scanner as suggested by Sander Cox.murphy2010-01-011-1/+16
|
* Fixed example tests.murphy2009-12-314-5/+77
| | | | | | | | | | | * test:clean task also deletes .expected.html files * LinesOfCode encoder can deal with tokens that have no scanner. Tests were added for this. * JSON encoder load rubygems if necessary. * NEW :loc as an alias for :lines_of_code * NEW Scanner methods marshal_dump, marshal_load FIXED Tokens dumping (failed while trying to dump @scanner)
* Cleanups.murphy2009-12-305-12/+8
|
* Using XML scanner for XML literals.murphy2009-12-301-4/+5
|
* Don't cache the CaseIgnoringWordLists.murphy2009-12-302-3/+3
|
* Documentation: Added warning about WordList caching.murphy2009-12-301-4/+18
|
* Documentation.murphy2009-12-301-2/+4
|
* JSON encoder: New format to preserve all information and be more accessible ↵murphy2009-12-301-2/+47
| | | | for JavaScript programmers (each token is an object). Also a refactorization. Added tests.
* Cleanup.murphy2009-12-301-2/+1
|
* Filters: Cleanups, refactorization, tests.murphy2009-12-303-6/+144
|
* Cleanup, documentation.murphy2009-12-301-9/+13
|
* Copying changes and fixes for 0.9.0rc3 from terminal-encoder branch over to ↵murphy2009-12-289-79/+372
| | | | trunk.
* Updated PHP scanner (#36)murphy2009-10-202-9/+43
| | | | | | | | * highlighting of class and function definitions * improved HTML/PHP detection * heredocs (simple) * a new test for classes
* Made FileType work with Pathname (closes #118).murphy2009-10-202-3/+15
|
* Updated PHP scanner: added a test, improved HTML/PHP detection, cleanup.murphy2009-10-191-10/+8
|
* Updating C scanner:murphy2009-10-191-14/+20
| | | | | | | | | | * Ruby 1.9 warnings (yeah, it's really a pain) * added DIRECTIVES * fixed a bug that highlighted // as an operator (bah!) * accept $ in variable names * accept intLL literals * recover silently from :include_expected on unexpected tokens
* Updating scanners: Ruby 1.9 warnings, KINDS_NOT_LOCmurphy2009-10-197-7/+22
| | | | | * Also, DATABASE is a SQL keyword.
* Updated Python scanner (#41)murphy2009-10-191-8/+41
| | | | | | | * Unicode support (kind of) * [from ...] import ... as construct highlighted as :include * added a test case for import statements
* Updated JSON scanner: false, null, true are highlighted as :value now.murphy2009-10-191-1/+6
|
* Updated Groovy scanner: using word lists from Java scanner.murphy2009-10-191-13/+5
|
* Updated Java scanner: Higlighting of keywords according to java.sun.com.murphy2009-10-191-11/+14
| | | | | | * added :reserved, :pre_constant, :exception classes for idents and keywords * "threadsafe" isn't a Java keyword
* Updated Ruby scanner:murphy2009-10-192-20/+29
| | | | | | | * cleanup (FIXMEs, dead code, comments) * improved value_expected detection using VALUE_EXPECTING_KEYWORDS * support for self.method style definitions
* Updated CSS scanner: element selectors are highlighted as :type.murphy2009-10-191-1/+9
|
* JavaScript scanner updated:murphy2009-10-191-5/+32
| | | | | | | | | * false, null, true, undefined are :pre_constant now * fixed floats starting with a dot * added support for XML literals (cool!) * function definitions are detected and highlighted as :function * added Prototype, SunSpider and TraceMonkey tests as test code
* New Scanner: *C++* (#76)!murphy2009-10-192-1/+200
| | | | | | 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.
* Scanner sets KINDS_NOT_LOC, Tokens#scanner.murphy2009-10-181-0/+4
|
* Tweaking colors for :pre_type, :pseudo_class and :exception.murphy2009-10-181-3/+3
|
* LinesOfCode: Language dependent via KINDS_NOT_LOC, documentation.murphy2009-10-181-1/+16
|
* TokenClassFilter: Support for :exclud => :all.murphy2009-10-181-2/+3
|
* Fixing Ruby 1.9 warnings.murphy2009-10-181-2/+2
|
* Fixing for_redcloth for latest RedCloth versions.murphy2009-10-181-4/+9
|
* tokens.rb: cleanup, Tokens#scanner, tests.murphy2009-10-181-45/+49
|
* Minor speedup for Ruby 1.9.murphy2009-10-181-1/+3
|
* Removing :procedure token class.murphy2009-10-181-1/+1
|
* We don't need Tokens encoder any more.murphy2009-10-101-44/+0
|
* Adding .dpr, .pas and .rxml to FileType::TypeFromExt list.murphy2009-07-081-0/+3
| | | | | Thanks to 0xf30fc7 for the patch.
* Added LinesOfCode encoder (issue #123) - simple version.murphy2009-06-291-0/+19
|
* Renamed TokenFilter to TokenClassFilter.murphy2009-06-282-5/+5
|
* Working around a problem with latest RedCloth versions (>= 4.2.0) (issue #119)murphy2009-06-271-1/+8
|
* Added a Filter class; filters inherit from it and yield tokens.murphy2009-06-204-17/+34
| | | | | | | You can write something like this now: @CodeRay.scan('puts "Hello, world"! # secret', :ruby).token_filter(:exclude => [:comment]).div@
* * Improved implementation of Encoder *token callbacks.murphy2009-06-207-15/+78
| | | | | | | | * Documentation for these methods. * Added two new encoders: CommentFilter < TokenFilter. * Simplified Text encoder. * Code cleanup in HTML encoder subclasses.
* Python Scanner (issue #41) updated:murphy2009-06-131-52/+71
| | | | | | | | * class and method definitions are highlighted * improved keyword argument recognition (less false positives) * backticks are operators now * from/import support still missing
* New: Plugin.title (closes #96)murphy2009-06-096-0/+13
| | | | | | | The title saves the real name for a language, like "C++"...something that can't be deduced from the class name. And a version fix in the README.
* Fixed XML Encoder; closes #94.murphy2009-06-091-1/+1
|
* Fixed an issue with predefined idents in the Python Scanner.murphy2009-06-071-0/+1
| | | | | * @file=@ should not be recognized as the predefined method @file@.
* Improved UTF-8 support for Ruby Scanner. Also fixed a minor bug.murphy2009-06-072-11/+30
| | | | | | | | | * closes #108 (new Ruby 1.9 call operator syntax sugar) * Added an example for unicode code. * automatic UTF-8 detection (experimental) * Still problems with different Ruby versions; new unicode test fails in Ruby 1.9 and JRuby.
* Removed obsolete :level property from HTML Encoder.murphy2009-06-071-1/+1
| | | | | Thanks to Gavin for pointing that out.