Skip to content

Commit

Permalink
final cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
korny committed Aug 31, 2013
1 parent 73da367 commit a48037b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 28 deletions.
59 changes: 33 additions & 26 deletions Changes.textile
Expand Up @@ -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

Expand Down Expand Up @@ -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.



2 changes: 1 addition & 1 deletion README.markdown
Expand Up @@ -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).
1 change: 0 additions & 1 deletion 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
Expand Down

0 comments on commit a48037b

Please sign in to comment.