summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners
Commit message (Collapse)AuthorAgeFilesLines
* Cleanups.murphy2009-12-303-10/+6
|
* Using XML scanner for XML literals.murphy2009-12-301-4/+5
|
* Don't cache the CaseIgnoringWordLists.murphy2009-12-302-3/+3
|
* Copying changes and fixes for 0.9.0rc3 from terminal-encoder branch over to ↵murphy2009-12-288-79/+235
| | | | 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-201-0/+1
|
* 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.
* 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-095-0/+5
| | | | | | | 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 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.
* Fixed a minor bug in the YAML scanner.murphy2009-04-221-1/+2
|
* Cleanups and minor fixes to PHP scanner (issue #36).murphy2009-04-221-25/+18
|
* More cleanup.murphy2009-04-221-4/+4
|
* SQL scanner cleanup (issue #33).murphy2009-04-221-8/+11
| | | | | * Increased size of the test suite random samples.
* Improved Python scanner (issue #41).murphy2009-04-221-19/+45
| | | | | | | | * fixed numeric literals * better Python 3 support * bugfixes, optimizations * added two more test files
* Lots of improvements for the PHP scanner.murphy2009-04-221-105/+126
|
* Many improvements to PHP Scanner.murphy2009-04-201-108/+214
| | | | | | | | * added lots of built-in functions, constants, syntax rule fixes... * automatic HTML/PHP document recognition; experimental! * cYcnus style adjusted; inline_delimiter outside of token group has a style now. * clean-up still not finished
* New: *PHP and SQL Scanners*murphy2009-04-203-4/+451
| | | | | | | | * 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.
* Experimental Unicode support for Scanners in Ruby 1.9.murphy2009-04-201-1/+3
| | | | | | | * Python scanner uses it for idents. * Scanner#column method needed to be fixed for multibyte characters because StringScanner#pos still works on bytes.
* Java scanner:murphy2009-04-142-5/+7
| | | | | | | | | | | * Fixed test after r305 broke it. * [FIXED] Save last_token_dot state through comments. C scanner: * Added file_extension declaration. ** All scanners should have this. * Code cleanup.
* New: *Python Scanner* (feature #41)murphy2009-04-141-0/+204
| | | | | | | | | | | | | | | | * 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.
* Fixed generate:scanner task; it now also sets the file_extension.murphy2009-04-141-0/+1
| | | | | | | For example, to create a stub for the Python Scanner, I can use: rake generate:scanner NAME=python BASE=c EXT=py
* JavaScript scanner: Fixed string keys (closes #85).murphy2009-02-201-11/+10
|
* Removed subversion $Id$ lines.murphy2009-02-203-6/+0
|
* Java scanner highlights interface declarations as :class.murphy2009-02-201-1/+1
|
* Fixed CSS scanner (closes #72).murphy2009-02-061-6/+28
| | | | | | | * handles url(...) outside of blocks * handles @media * handles [attribute=selectors] (too simple, added TODO)
* Ruby scanner: Even more fixes for control and meta escape sequences.murphy2009-02-061-9/+14
| | | | | * I think I got it right this time.
* Ruby scanner: Fixed rarely used \c, \C-, and \M- escape sequences.murphy2009-02-052-1/+2
| | | | | | | * JavaScript scanner: elaborate a comment * SimpleRegexpScanner: Just some testing with the Ruby stack. * coderay-lib.tmproj: I should just remove it from the repo...
* Fixed a Ruby 1.8 compatibility bug in Groovy Scanner.murphy2009-01-221-1/+1
| | | | | * Also added jruby19 task (jruby --1.9 mode).
* Fixed JavaScript scanner, highlighting of strings as keys.murphy2009-01-221-4/+12
|
* Updated Groovy Scanner (feature #60).murphy2009-01-221-33/+57
| | | | | | | * Code inside ${...} is highlighted; works nested. * various minor bugfixes * Some string related problems remain. Groovy is strange!
* New: *Groovy Scanner* (feature #60)murphy2009-01-131-0/+247
| | | | | | | | | | | * 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 ;-)
* Java Scanner: remove :regexp cases, use :pre_type for built-in types.murphy2009-01-131-10/+3
|
* Ruby Scanner: Shebang comments are highlighted as :doctype.murphy2009-01-131-0/+4
|
* Fixed a bug in Ruby scanner that broke tests with JRuby.murphy2009-01-111-1/+2
|
* Added js alias for JavaScript.murphy2009-01-041-0/+1
|
* Completed YAML Scanner (closes #34).murphy2009-01-012-26/+29
| | | | | | | | | | | | | YAML Scanner: * Added another example (multiline). * Added multiline string recognition. * This should be enough for most people. Else: * New method: Scanner#column (very useful and fast!) * Added new token type :doctype, used also by HTML scanner. * coderay_suite: minor output tweaks.
* JRuby fixes.murphy2008-12-251-2/+3
|
* Fixes for Ruby 1.9.murphy2008-12-251-5/+5
|