| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
In some environments (e.g. [1]) $: can change between loading the
library and using it.
To avoid this problem, we always pass an absolute path to autoload
internal modules.
[1] https://github.com/pry/pry/issues/280
|
|
|
|
| |
method
|
| |
|
|
|
|
| |
bugs; cleanups; dropped NitroXHTML scanner; improved tests
|
| |
|
| |
|
| |
|
|
|
|
| |
is now a StandardError
|
| |
|
|
|
|
| |
This is more friendly for intelligent diff highlighting.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
trunk.
|
|
|
|
|
|
|
| |
* cleanup (FIXMEs, dead code, comments)
* improved value_expected detection using VALUE_EXPECTING_KEYWORDS
* support for self.method style definitions
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
|
| |
Ignore test/scanners/*/*.expected.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
HTML highlighter: unknown token classes now yield a CSS class with that name instead of :error
A new Ruby test
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
debug mode, but token kind is nil unless assigned.
Small fixes for C and Ruby scanners.
Renamed local variable type to kind in Ruby scanner.
Improved RHTML scanner to recognize -%> as delimiter.
HTML encoder: improved handling of malformed token strings.
Fixed PluginHost#inspect including docu.
Scanner#raise_inspect also shows state if given.
|
| |
|
|
|
|
|
|
| |
with empty delimiter.
Fixed documentation uploading.
|
|
|
|
|
|
| |
string) (thanks to bovi again.)
Test case added.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 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.
|
|
|
|
|
| |
Tests adjusted.
highlight.rb updated.
|
|
|
|
|
| |
demo_dump and demo_encoder updated for new YAML version.
Fixes in output.rb and numerization.rb
|
|
|
|
|
|
|
|
|
|
| |
- 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)
|
| |
|
|
|
|
| |
Test fixtures adjusted.
|
| |
|
|
|
|
|
| |
tokens.rb: orig_each alias deleted; using super now.
scanners/ruby.rb: experimental Regexp/Fancy string recognition for "method /.../" cases.
|
|
|
|
|
| |
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!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|