diff options
author | murphy <murphy@rubychan.de> | 2008-09-21 16:25:44 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2008-09-21 16:25:44 +0000 |
commit | 9a5f5e6217db0b7689b64ca0892feacf32be3d66 (patch) | |
tree | 98a25e39c452f0d7d1268810b014d929ab9930cc /test/scanners/coderay_suite.rb | |
parent | 41acfacb91970c8fa4e8b34f35c718eb329a3733 (diff) | |
download | coderay-9a5f5e6217db0b7689b64ca0892feacf32be3d66.tar.gz |
New: *Java Scanner* (closes #42).
* 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)
Diffstat (limited to 'test/scanners/coderay_suite.rb')
-rw-r--r-- | test/scanners/coderay_suite.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/scanners/coderay_suite.rb b/test/scanners/coderay_suite.rb index 4ad057b..2a51979 100644 --- a/test/scanners/coderay_suite.rb +++ b/test/scanners/coderay_suite.rb @@ -142,6 +142,7 @@ module CodeRay time_for_lang = Benchmark.realtime do scanner = CodeRay::Scanners[self.class.lang].new + raise "No Scanner for #{self.class.lang} found!" if scanner.is_a? CodeRay::Scanners[nil] max = ENV.fetch('max', DEFAULT_MAX).to_i random_test scanner, max unless ENV['norandom'] || ENV['only'] |