Skip to content

Commit a48037b

Browse files
committed
final cleanup
1 parent 73da367 commit a48037b

File tree

3 files changed

+34
-28
lines changed

3 files changed

+34
-28
lines changed

Changes.textile

+33-26
Original file line numberDiff line numberDiff line change
@@ -13,48 +13,58 @@ New scanners:
1313

1414
More new stuff:
1515

16-
* Add .xaml file type [#121, thanks to Kozman Bálint]
17-
* New token type @:id@ for CSS/Sass [#27]
18-
* New token type @:done@ for Taskpaper [#39]
19-
* New token type @:map@ for Lua, introducing a nice nested-shades trick [#22, thanks to Quintus and Nathan Youngman]
20-
* New token type @:unknown@ for Debug scanner
21-
* New DebugLint encoder that checks for empty tokens and correct nesting
16+
* @.xaml@ file type [#121, thanks to Kozman Bálint]
17+
* recognize @Guardfile@, @Vagrantfile@, and @Appraisals@ as Ruby files [#121, thanks to Kozman Bálint]
18+
* new token kind @:id@ for CSS/Sass [#27]
19+
* new token kind @:done@ for Taskpaper [#39]
20+
* new token kind @:map@ for Lua, introducing a nice nested-shades trick [#22, thanks to Quintus and Nathan Youngman]
21+
* new token kind @:unknown@ for Debug scanner
22+
* new DebugLint encoder that checks for empty tokens and correct nesting
2223

2324
Improvements:
2425

2526
* CSS scanner uses @:id@ and @:tag@ now [#27]
2627
* Diff scanner: Highlight inline changes in multi-line changes [#99]
2728
* JavaScript scanner: Highlight multi-line comments in diff correctly
29+
* JSON scanner: simplify key/value heuristic, using look-ahead instead of a stack
2830
* HTML scanner displays style tags and attributes now [#145]
29-
* Ruby scanner: Accept %i and %I symbol lists (Ruby 2.0) [thanks to Nathan Youngman]
30-
* Ruby scanner: Accept keywords as Ruby 1.9 hash keys [#126]
31+
* Ruby scanner: Accept @%i(…)@ and @%I(…)@ symbol lists (Ruby 2.0) [thanks to Nathan Youngman]
32+
* Ruby scanner: Accept keywords as Ruby hash keys [#126]
33+
* performance improvements to several scanners and encoders, especially Terminal and HTML
34+
* added @:keep_state@ functionality to more scanners so they work nicely with diff now [#116]
35+
* refactoring and cleanup to achieve better "Code Climate" ratings (but I don't really care)
36+
* updated and cleaned up the documentation,
37+
* documented list of TokenKinds
38+
* Alpha style: tweaked colors for @.binary@, @.local-variable@, and @.predefined-type@
39+
* @rake generate@ supports Git now instead of Subversion
3140

3241
Removed:
3342

3443
* @Tokens#dump@, @Tokens.load@, @Tokens::Undumping@, and @zlib@ dependency
35-
* Double-click toggle handler from HTML table output
44+
* double-click toggle handler from HTML table output
45+
* @rake_helpers@, @sample@ directories and several other ancient garbage
3646

3747
Fixes:
3848

39-
* Fixes to CSS scanner (floats, pseudoclasses, nth-child) [#143]
40-
* Fixed empty tokens and unclosed token groups in HTML, CSS, Diff, Goovy, PHP, Raydebug, Ruby, SQL, and YAML scanners [#144]
41-
* Fixed @:docstring@ token type style
42-
* Fixed several problems related to Hash caches and dynamic Symbol creation that might have been exploited by an attacker [#148]
43-
* Fixed HTML encoder when output is a StringIO (eg. when using @-HTML@ as a command line parameter)
49+
* fixes to CSS scanner (floats, pseudoclasses, nth-child) [#143]
50+
* fixed empty tokens and unclosed token groups in HTML, CSS, Diff, Goovy, PHP, Raydebug, Ruby, SQL, and YAML scanners [#144]
51+
* fixed @:docstring@ token type style
52+
* fixed several infinite Hash caches and dynamic Symbol creation that might have been exploited by an attacker [#148]
53+
* fixed HTML encoder when output is a StringIO (eg. when using @-HTML@ as a command line parameter)
4454
* TokenKinds should not be frozen [#130, thanks to Gavin Kistner]
45-
* Display line numbers in HTML @:table@ mode even for single-line code (remove special case) [#41, thanks to Ariejan de Vroom]
46-
* Override Bootstrap's @pre { word-break: break-all }@ styling for line numbers [#102, thanks to lightswitch05]
55+
* display line numbers in HTML @:table@ mode even for single-line code (remove special case) [#41, thanks to Ariejan de Vroom]
56+
* override Bootstrap's @pre { word-break: break-all }@ styling for line numbers [#102, thanks to lightswitch05]
4757
* HTML encoder will not warn about unclosed token groups at the end of the stream
58+
* fixed problem with coderay/version.rb being loaded twice
4859

4960
Internals:
5061

51-
* The Debug scanner maps unknown token kinds to @:unknown@ (to avoid creating Symbols based on possibly unsafe input)
52-
* The Raydebug scanner highlights unknown token kinds as @:plain@
53-
* Debug encoder refactored; use DebugLint if you want strict checking now
54-
* Debug encoder will not warn about errors in the token stream
55-
* Plugin does not warn about fallback when default is defined
56-
* PluginHost now works with Strings instead of Symbols internally (to avoid using @#to_sym@)
57-
* Added @:keep_state@ functionality to more scanners [#116]
62+
* The Debug scanner maps unknown token kinds to @:unknown@ (to avoid creating Symbols based on possibly unsafe input).
63+
* The Raydebug scanner highlights unknown token kinds as @:plain@.
64+
* The Debug encoder refactored; use DebugLint if you want strict checking now..
65+
* The Debug encoder will not warn about errors in the token stream.
66+
* Plugin does not warn about fallback when default is defined.
67+
* PluginHost now works with Strings instead of Symbols internally (to avoid using @#to_sym@).
5868

5969
h2. Changes in 1.0.9
6070

@@ -464,6 +474,3 @@ The helper classes were cleaned up; see above for details.
464474

465475
* *CHANGED* @Plugin@ API was simplified and stripped of all unnecessary features.
466476
* *CHANGED* Moved @GZip@ and @FileType@ libraries into @CodeRay@; cleaned them up.
467-
468-
469-

README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ html = CodeRay.scan("puts 'Hello, world!'", :ruby).div(:line_numbers => :table)
2828

2929
## Documentation
3030

31-
See [http://coderay.rubychan.de/doc/](http://coderay.rubychan.de/doc/).
31+
See [rubydoc](http://rubydoc.info/gems/coderay).

lib/coderay/scanners/go.rb

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module CodeRay
22
module Scanners
33

4-
# Scanner for Go, copy from c
54
class Go < Scanner
65

76
register_for :go

0 commit comments

Comments
 (0)