Skip to content

Commit 4f19f44

Browse files
committed
Merge branch 'master' into possible-speedups
2 parents 90cf032 + a48037b commit 4f19f44

File tree

3 files changed

+59
-36
lines changed

3 files changed

+59
-36
lines changed

Changes.textile

+58-34
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,67 @@ p=. _This files lists all changes in the CodeRay library since the 0.9.8 release
44

55
h2. Changes in 1.1
66

7-
* New scanner: Lua [#21, #22, thanks to Quintus]
8-
* New scanner: Sass [#93]
9-
* New scanner: Go [#28, thanks to Eric Guo and Nathan Youngman]
10-
* New scanner: Taskpaper [#39, thanks to shimomura]
7+
New scanners:
8+
9+
* Go [#28, thanks to Eric Guo and Nathan Youngman]
10+
* Lua [#21, #22, thanks to Quintus]
11+
* Sass [#93]
12+
* Taskpaper [#39, thanks to shimomura]
13+
14+
More new stuff:
15+
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
23+
24+
Improvements:
25+
26+
* CSS scanner uses @:id@ and @:tag@ now [#27]
1127
* Diff scanner: Highlight inline changes in multi-line changes [#99]
1228
* JavaScript scanner: Highlight multi-line comments in diff correctly
13-
* Ruby scanner: Accept %i and %I symbol lists (Ruby 2.0) [thanks to Nathan Youngman]
14-
* Ruby scanner: Accept keywords as Ruby 1.9 hash keys [#126]
29+
* JSON scanner: simplify key/value heuristic, using look-ahead instead of a stack
1530
* HTML scanner displays style tags and attributes now [#145]
16-
* Remove double-click toggle handler from HTML table output
17-
* Fixes to CSS scanner (floats, pseudoclasses, nth-child) [#143]
18-
* Fixed empty tokens and unclosed token groups in HTML, CSS, Diff, Goovy, PHP, Raydebug, Ruby, SQL, and YAML scanners [#144]
19-
* Added @:keep_state@ functionality to more scanners [#116]
20-
* CSS scanner uses @:id@ and @:tag@ now [#27]
21-
* Removed @Tokens#dump@, @Tokens.load@, @Tokens::Undumping@, and @zlib@ dependency. Nobody was using this, right?
22-
* Add .xaml file type [#121, thanks to Kozman Bálint]
23-
* @CodeRay::TokenKinds@ should not be frozen [#130, thanks to Gavin Kistner]
24-
* New token type @:id@ for CSS/Sass [#27]
25-
* New token type @:done@ for Taskpaper [#39]
26-
* New token type @:map@ for Lua, introducing a nice nested-shades trick [#22, thanks to Quintus and Nathan Youngman]
27-
* New token type @:unknown@ for Debug scanner
28-
* Display line numbers in HTML @:table@ mode even for single-line code (remove special case) [#41, thanks to Ariejan de Vroom]
29-
* Override Bootstrap's @pre { word-break: break-all }@ styling for line numbers [#102, thanks to lightswitch05]
30-
* Fixed @:docstring@ token type style
31-
* Fixed several problems related to Hash caches and dynamic Symbol creation that might have been exploited by an attacker [#148]
32-
* @PluginHost@ now works with Strings instead of Symbols internally (to avoid using @#to_sym@)
33-
* The @Debug@ scanner maps unknown token kinds to @:unknown@ (to avoid creating Symbols based on possibly unsafe input)
34-
* The @Raydebug@ scanner highlights unknown token kinds as @:plain@
35-
* @Plugin@ does not warn about fallback when default is defined
36-
* Fixed @HTML@ encoder when output is a StringIO (eg. when using @-HTML@)
37-
* @HTML@ encoder will not warn about unclosed token groups at the end of the stream
38-
* @Debug@ encoder refactored; use @DebugLint@ if you want strict checking now
39-
* @Debug@ encoder will not warn about errors in the token stream
40-
* New @DebugLint@ encoder that checks for empty tokens and correct nesting
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
40+
41+
Removed:
42+
43+
* @Tokens#dump@, @Tokens.load@, @Tokens::Undumping@, and @zlib@ dependency
44+
* double-click toggle handler from HTML table output
45+
* @rake_helpers@, @sample@ directories and several other ancient garbage
46+
47+
Fixes:
48+
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)
54+
* TokenKinds should not be frozen [#130, thanks to Gavin Kistner]
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]
57+
* 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
59+
60+
Internals:
61+
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@).
4168

4269
h2. Changes in 1.0.9
4370

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

448475
* *CHANGED* @Plugin@ API was simplified and stripped of all unnecessary features.
449476
* *CHANGED* Moved @GZip@ and @FileType@ libraries into @CodeRay@; cleaned them up.
450-
451-
452-

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)