| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
"early death" by loading it when the encoder is loaded.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* TokenKindFilter handles groups (closes #223).
* Added :docstring to the default KINDS_NOT_LOC list.
* Also fixed a problem with the :tokens option in Scanners.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Also removed the :list wrapping style, and made a lot of cleanup in the styles. See Changes.textile.
|
|
|
|
|
|
|
|
| |
This also means it's incompatible to previous versions of HTML and CSS.
Also, the output may not show correctly on IE.
I officially drop support for Internet Explorer with no regrets.
|
| |
|
|
|
|
| |
colors.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* *RENAMED* from ClassOfKind. The term "token class" is no longer used in CodeRay. Instead, tokens have _kinds_.
* *RENAMED* TokenKindFilter to TokenClassFilter.
* *ADDED* documentation on encoders affected by the term change.
* *REMOVED* token kinds :attribute_name_fat, :attribute_value_fat, :operator_fat, :tag_fat, and :xml_text.
* *ADDED* token kind :filename.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* 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)
|
|
|
|
| |
for JavaScript programmers (each token is an object). Also a refactorization. Added tests.
|
| |
|
| |
|
|
|
|
| |
trunk.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
You can write something like this now:
@CodeRay.scan('puts "Hello, world"! # secret', :ruby).token_filter(:exclude => [:comment]).div@
|
|
|
|
|
|
|
|
| |
* Documentation for these methods.
* Added two new encoders: CommentFilter < TokenFilter.
* Simplified Text encoder.
* Code cleanup in HTML encoder subclasses.
|
| |
|
|
|
|
|
| |
Thanks to Gavin for pointing that out.
|
|
|
|
| |
Thanks to sunaku for reporting this.
|
|
|
|
|
|
| |
* XML encoder is actually broken! REXML fault?
* Firefox can handle long HTML tables now.
|
|
|
|
|
| |
Very simple. Not streamable yet.
|
| |
|
|
|
|
|
|
| |
* The scanner test suite uses it and highlights the lines that
differ after a failed complete test in *.actual.html.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Encoder: removed a warning
- Encoders::HTML: don't shadow outer variable
- Plugin: move require_plugin into class namespace
- Ruby Scanner:
- "alias" keyword recognition
- better regexp/division distinction
- recognize ~, !, !=, and !~ as method names (partly Ruby 1.9 only)
- reordered states for speed
Tests:
- updated coderay-suite to use gem instead of require_gem
- general improvements (more colors!, new parameter: new, new syntax lang.test for only and new)
- fixed ruby suite
- adjusted a lot of Ruby tests (alias uses methods now)
- new tests: ruby/operators, ruby/regexp
Samples:
- fixed/updated ('bout time)
Rake tasks:
- updated to use new rubygems API
|