| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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)
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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 file_extensions to Delphi, XML, Debug, Scheme, and NitroXHTML scanners.
* Removed obsolete extension declarations from Scanner test suites.
* Minor cleanups.
|
| |
|
|
|
|
|
| |
* Cleanup in documentation.rake.
|
|
|
|
|
|
| |
* Tested with RedCloth 4.0.3.
* Also added :ee task for the Ruby Enterprise Edition (rubyee).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Ignore test/scanners/*/*.expected.html
|
|
|
|
|
|
|
|
| |
- make a copy of HTML output (named test.expected.html) when complete test was successful
- skip random test if ENV['only'] was set
- minor output improvements
- refactorized the progress output
|
| |
|
|
|
|
|
|
|
|
| |
- made test and bench tasks run with all implementations
- included term/ansicolor in lib (will need in some day anyway) as svn:external
(this also means that tests will be colorful on all rubys)
- incremented CodeRay version number (we're near...)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Test and example added.
Token changed: operator_fat instead of operator_name (for use with LISP-like
parentheses).
Added file_extension for Scanners.
Improved CodeRay::Suite:
- uses scanners file extension now
- example parameter is now named "only"
- only param overwrite MAX_CODE_SIZE_TO_HIGHLIGHT
|
|
|
|
|
| |
Added drafts for a comparison of CodeRa an Pygments features.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
General:
- Declared version 0.7.6.
- Moved WordList, CaseIgnoringWordList, Plugin, PluginHost and FileType
into CodeRay namespace. CodeRay should be "clean" now, except for the
String#to_unix helper function.
- Fixed a bit of documentation.
- CodeRay binary: Prepare for streaming switch.
Scanners:
- Added code= alias for string=.
- Added streaming? method: Is this Scanner in streaming mode?
- Enhanced error info a bit.
- Ruby scanner:
- Highlights Regexp heredocs now. They may be added to Ruby 1.9.
- Speedups with better support for Ruby 1.9.
- Change in whitespace handling (faster and cleaner now.)
- Speed up some operator recognition (saving two string comparisons).
- Declared C and Plaintext Scanners as Streamable.
Tokens:
- Changed Text/Block token recognition (#is_a? ::String for Ruby 1.9 support).
- New method: Tokens#text yields the code string.
- text_size fixed.
- Token kind shortcuts (like r for reserved) are now defined in
token_classes.rb (instead of encoders/html/classes.rb).
Encoders:
- Debug Scanner added.
- Base encoder class adds to @out when encoding (if @out is set).
- A little Tokens scanner speedup.
- Text encoder uses text_token.
- Statistic encoder counts block tokens.
- Smaller changes in XML and HTML encoders.
Styles:
- cYcnus style defines a debug class now.
Duo:
- scanner and encoder are now methods. Scanner and Encoder are created (and
cached) when needed, not earlier.
- Documented.
Tests:
- Disabled encoder and scanner list check (breaks too often).
- Added identity test, which checks if tokens#text matches the input.
- Added nocolor switch.
Developer tools:
- Benchmark uses Encoder#file_extension for output now.
- Rakefile: Support for 19, 18, yarv and ruby switches for easy comparing
different Ruby versions.
- Statistic: Demos are no longer tests.
|
|
|
|
|
| |
Changed default sizes for tests => much faster default tests.
|
| |
|
| |
|
| |
|
|
|
|
| |
- changed color of times from blue to white (blue is not well visible on black.)
|
| |
|
|
|
|
|
|
| |
New token: :inline_delimiter
Scanner tests suite revamped: colorization, split up into methods.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Ruby Scanner: improved handling of ambiguos values.
- operator methods are now :ident instead of :operator
- fancy_allowed and regexp_allowed are now value_expected
- value_expected works in operator method calls
- tests enhanced and adjusted
Scanner tests: new diffed option, diff doesn't imply noassert anymore
|
| |
|
|
|
|
|
|
|
| |
Fixed Ruby scanner (/= was scanned as regexp!)
Made bench.rb run from any folder.
Made scanner test diff function work via EDITOR instead of gvimdiff.
|
| |
|
|
|
|
|
|
| |
rake test now runs both functional and scanner tests!
Deleted stupid classes test.
|
|
|
|
|
|
| |
Plugin#all_plugin_names is now called #list.
Added some basic functional tests and adjusted statistic.rake.
|
|
|
|
|
| |
Ignore *.actual.* beyound test/scanners.
|
|
|
|
|
| |
Added test:clean task.
|
|
|
|
|
|
| |
- tests failed because :symbol.is_a? String.
- ...and Array#shuffle! is already built into Ruby 1.9
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- improved coderay_suite.rb (random and shuffled tests, max parameter, scannerlang->lang, sorted test cases...)
- changed html output extension to .actual.html to svn:ignore them
- fixed some tests (deleted $Id$ etc.)
- made XHTML testcase work
Scanners:
- fixed HTML, Delphi and Nitro scanners thanks to new tests
Engine:
- Tokens#fix and #fix! added (yet to be tested)
- improved Scanner#raise_inspect a bit
Converted more files to UNIX format (go away, stinkin' \r!)
|
|
|
|
|
| |
HTML highlighter: unknown token classes now yield a CSS class with that name instead of :error
A new Ruby test
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
A bunch of new tests. Delphi and XML are now tested, too.
bench/example.dump deleted (depends on Ruby version, OS, whatever. Nothing for the repo.)
|
| |
|