| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
included in other gems and returns false when files are indeed present.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
bugs; cleanups; dropped NitroXHTML scanner; improved tests
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
extensions), improved FileType error message for ambiguous arguments.
|
|
|
|
| |
improved documentation, re-indented everything.
|
|
|
|
|
|
| |
It's still in development. The Scheme scanner, which Lice used as template,
has some very bad code, and both scanner must be cleaned up (see #59).
|
| |
|
| |
|
|
|
|
|
|
| |
* *REMOVED* @FileType#shebang@ is a protected method now.
* *NEW*: Regonizes @.gemspec@, @.rjs@, @.rpdf@ extensions and @Capfile@ as Ruby.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Thanks to 0xf30fc7 for the patch.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* Test cases added.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
| |
'plugin/helper' syntax.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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 ;-)
|
|
|
|
|
| |
With this change, upper case lang names are allowed like 'C'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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)
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
| |
A bit of code and documentation cleanup
HTML encoder: fixed css class output for NO_HIGHLIGHT tokens when :info is set.
Fixed Text encoder.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- fixed a bad bug (CaseIgnoringWordList wasn't case ignoring!)
- code and doc cleanup
- optional caching added
- interface minimized (no more WordList.for)
FileType:
- added raybedug type (see next commits)
|