summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-09-01 01:01:35 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-09-01 01:01:35 +0200
commita48037b85a12228431b32103786456f36beb355f (patch)
tree00a36d011132d61d600990b79143407c3174b750
parent73da367263ac9b59ebdb531d7d4cc9302932099f (diff)
downloadcoderay-a48037b85a12228431b32103786456f36beb355f.tar.gz
final cleanupv1.1.0
-rw-r--r--Changes.textile59
-rw-r--r--README.markdown2
-rw-r--r--lib/coderay/scanners/go.rb1
3 files changed, 34 insertions, 28 deletions
diff --git a/Changes.textile b/Changes.textile
index f8081da..8e388e0 100644
--- a/Changes.textile
+++ b/Changes.textile
@@ -13,48 +13,58 @@ New scanners:
More new stuff:
-* Add .xaml file type [#121, thanks to Kozman Bálint]
-* New token type @:id@ for CSS/Sass [#27]
-* New token type @:done@ for Taskpaper [#39]
-* New token type @:map@ for Lua, introducing a nice nested-shades trick [#22, thanks to Quintus and Nathan Youngman]
-* New token type @:unknown@ for Debug scanner
-* New DebugLint encoder that checks for empty tokens and correct nesting
+* @.xaml@ file type [#121, thanks to Kozman Bálint]
+* recognize @Guardfile@, @Vagrantfile@, and @Appraisals@ as Ruby files [#121, thanks to Kozman Bálint]
+* new token kind @:id@ for CSS/Sass [#27]
+* new token kind @:done@ for Taskpaper [#39]
+* new token kind @:map@ for Lua, introducing a nice nested-shades trick [#22, thanks to Quintus and Nathan Youngman]
+* new token kind @:unknown@ for Debug scanner
+* new DebugLint encoder that checks for empty tokens and correct nesting
Improvements:
* CSS scanner uses @:id@ and @:tag@ now [#27]
* Diff scanner: Highlight inline changes in multi-line changes [#99]
* JavaScript scanner: Highlight multi-line comments in diff correctly
+* JSON scanner: simplify key/value heuristic, using look-ahead instead of a stack
* HTML scanner displays style tags and attributes now [#145]
-* Ruby scanner: Accept %i and %I symbol lists (Ruby 2.0) [thanks to Nathan Youngman]
-* Ruby scanner: Accept keywords as Ruby 1.9 hash keys [#126]
+* Ruby scanner: Accept @%i(…)@ and @%I(…)@ symbol lists (Ruby 2.0) [thanks to Nathan Youngman]
+* Ruby scanner: Accept keywords as Ruby hash keys [#126]
+* performance improvements to several scanners and encoders, especially Terminal and HTML
+* added @:keep_state@ functionality to more scanners so they work nicely with diff now [#116]
+* refactoring and cleanup to achieve better "Code Climate" ratings (but I don't really care)
+* updated and cleaned up the documentation,
+* documented list of TokenKinds
+* Alpha style: tweaked colors for @.binary@, @.local-variable@, and @.predefined-type@
+* @rake generate@ supports Git now instead of Subversion
Removed:
* @Tokens#dump@, @Tokens.load@, @Tokens::Undumping@, and @zlib@ dependency
-* Double-click toggle handler from HTML table output
+* double-click toggle handler from HTML table output
+* @rake_helpers@, @sample@ directories and several other ancient garbage
Fixes:
-* Fixes to CSS scanner (floats, pseudoclasses, nth-child) [#143]
-* Fixed empty tokens and unclosed token groups in HTML, CSS, Diff, Goovy, PHP, Raydebug, Ruby, SQL, and YAML scanners [#144]
-* Fixed @:docstring@ token type style
-* Fixed several problems related to Hash caches and dynamic Symbol creation that might have been exploited by an attacker [#148]
-* Fixed HTML encoder when output is a StringIO (eg. when using @-HTML@ as a command line parameter)
+* fixes to CSS scanner (floats, pseudoclasses, nth-child) [#143]
+* fixed empty tokens and unclosed token groups in HTML, CSS, Diff, Goovy, PHP, Raydebug, Ruby, SQL, and YAML scanners [#144]
+* fixed @:docstring@ token type style
+* fixed several infinite Hash caches and dynamic Symbol creation that might have been exploited by an attacker [#148]
+* fixed HTML encoder when output is a StringIO (eg. when using @-HTML@ as a command line parameter)
* TokenKinds should not be frozen [#130, thanks to Gavin Kistner]
-* Display line numbers in HTML @:table@ mode even for single-line code (remove special case) [#41, thanks to Ariejan de Vroom]
-* Override Bootstrap's @pre { word-break: break-all }@ styling for line numbers [#102, thanks to lightswitch05]
+* display line numbers in HTML @:table@ mode even for single-line code (remove special case) [#41, thanks to Ariejan de Vroom]
+* override Bootstrap's @pre { word-break: break-all }@ styling for line numbers [#102, thanks to lightswitch05]
* HTML encoder will not warn about unclosed token groups at the end of the stream
+* fixed problem with coderay/version.rb being loaded twice
Internals:
-* The Debug scanner maps unknown token kinds to @:unknown@ (to avoid creating Symbols based on possibly unsafe input)
-* The Raydebug scanner highlights unknown token kinds as @:plain@
-* Debug encoder refactored; use DebugLint if you want strict checking now
-* Debug encoder will not warn about errors in the token stream
-* Plugin does not warn about fallback when default is defined
-* PluginHost now works with Strings instead of Symbols internally (to avoid using @#to_sym@)
-* Added @:keep_state@ functionality to more scanners [#116]
+* The Debug scanner maps unknown token kinds to @:unknown@ (to avoid creating Symbols based on possibly unsafe input).
+* The Raydebug scanner highlights unknown token kinds as @:plain@.
+* The Debug encoder refactored; use DebugLint if you want strict checking now..
+* The Debug encoder will not warn about errors in the token stream.
+* Plugin does not warn about fallback when default is defined.
+* PluginHost now works with Strings instead of Symbols internally (to avoid using @#to_sym@).
h2. Changes in 1.0.9
@@ -464,6 +474,3 @@ The helper classes were cleaned up; see above for details.
* *CHANGED* @Plugin@ API was simplified and stripped of all unnecessary features.
* *CHANGED* Moved @GZip@ and @FileType@ libraries into @CodeRay@; cleaned them up.
-
-
-
diff --git a/README.markdown b/README.markdown
index f333655..e23f603 100644
--- a/README.markdown
+++ b/README.markdown
@@ -28,4 +28,4 @@ html = CodeRay.scan("puts 'Hello, world!'", :ruby).div(:line_numbers => :table)
## Documentation
-See [http://coderay.rubychan.de/doc/](http://coderay.rubychan.de/doc/).
+See [rubydoc](http://rubydoc.info/gems/coderay).
diff --git a/lib/coderay/scanners/go.rb b/lib/coderay/scanners/go.rb
index 59473f6..99fdd63 100644
--- a/lib/coderay/scanners/go.rb
+++ b/lib/coderay/scanners/go.rb
@@ -1,7 +1,6 @@
module CodeRay
module Scanners
- # Scanner for Go, copy from c
class Go < Scanner
register_for :go