@@ -2,42 +2,80 @@ h1=. CodeRay Version History
2
2
3
3
p=. _This files lists all changes in the CodeRay library since the 0.9.8 release._
4
4
5
+ h2. Changes in 1.1.1
6
+
7
+ * SQL scanner: Allow @$@ signs in SQL identifiers [#164, thanks to jasir and Ben Basson]
8
+ * SQL scanner: Fix open strings [#163, thanks to Adam]
9
+ * Ruby scanner: Accept number literal suffixes @r@ and @i@ (Ruby 2.1)
10
+ * Ruby scanner: Accept quoted hash keys like @{ "a": boss }@ (Ruby 2.2)
11
+ * Ruby scanner: Accept save navigation operator @&.@ (Ruby 2.3)
12
+ * Ruby scanner: Accept squiggly heredoc @<<~@ (Ruby 2.3)
13
+ * Diff scanner: Prevent running out of regexp stack.
14
+ * HTML encoder: You can keep tabs intact now by setting @tab_width: false@.
15
+
5
16
h2. Changes in 1.1
6
17
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]
18
+ New scanners:
19
+
20
+ * Go [#28, thanks to Eric Guo and Nathan Youngman]
21
+ * Lua [#21, #22, thanks to Quintus]
22
+ * Sass [#93]
23
+ * Taskpaper [#39, thanks to shimomura]
24
+
25
+ More new stuff:
26
+
27
+ * @.xaml@ file type [#121, thanks to Kozman Bálint]
28
+ * recognize @Guardfile@, @Vagrantfile@, and @Appraisals@ as Ruby files [#121, thanks to Kozman Bálint]
29
+ * new token kind @:id@ for CSS/Sass [#27]
30
+ * new token kind @:done@ for Taskpaper [#39]
31
+ * new token kind @:map@ for Lua, introducing a nice nested-shades trick [#22, thanks to Quintus and Nathan Youngman]
32
+ * new token kind @:unknown@ for Debug scanner
33
+ * new DebugLint encoder that checks for empty tokens and correct nesting
34
+
35
+ Improvements:
36
+
37
+ * CSS scanner uses @:id@ and @:tag@ now [#27]
11
38
* Diff scanner: Highlight inline changes in multi-line changes [#99]
12
39
* 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]
40
+ * JSON scanner: simplify key/value heuristic, using look-ahead instead of a stack
15
41
* 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
42
+ * Ruby scanner: Accept @%i(…)@ and @%I(…)@ symbol lists (Ruby 2.0) [thanks to Nathan Youngman]
43
+ * Ruby scanner: Accept keywords as Ruby hash keys [#126]
44
+ * performance improvements to several scanners and encoders, especially Terminal and HTML
45
+ * added @:keep_state@ functionality to more scanners so they work nicely with diff now [#116]
46
+ * refactoring and cleanup to achieve better "Code Climate" ratings (but I don't really care)
47
+ * updated and cleaned up the documentation,
48
+ * documented list of TokenKinds
49
+ * Alpha style: tweaked colors for @.binary@, @.local-variable@, and @.predefined-type@
50
+ * @rake generate@ supports Git now instead of Subversion
51
+
52
+ Removed:
53
+
54
+ * @Tokens#dump@, @Tokens.load@, @Tokens::Undumping@, and @zlib@ dependency
55
+ * double-click toggle handler from HTML table output
56
+ * @rake_helpers@, @sample@ directories and several other ancient garbage
57
+
58
+ Fixes:
59
+
60
+ * fixes to CSS scanner (floats, pseudoclasses, nth-child) [#143]
61
+ * fixed empty tokens and unclosed token groups in HTML, CSS, Diff, Goovy, PHP, Raydebug, Ruby, SQL, and YAML scanners [#144]
62
+ * fixed @:docstring@ token type style
63
+ * fixed several infinite Hash caches and dynamic Symbol creation that might have been exploited by an attacker [#148]
64
+ * fixed HTML encoder when output is a StringIO (eg. when using @-HTML@ as a command line parameter)
65
+ * TokenKinds should not be frozen [#130, thanks to Gavin Kistner]
66
+ * display line numbers in HTML @:table@ mode even for single-line code (remove special case) [#41, thanks to Ariejan de Vroom]
67
+ * override Bootstrap's @pre { word-break: break-all }@ styling for line numbers [#102, thanks to lightswitch05]
68
+ * HTML encoder will not warn about unclosed token groups at the end of the stream
69
+ * fixed problem with coderay/version.rb being loaded twice
70
+
71
+ Internals:
72
+
73
+ * The Debug scanner maps unknown token kinds to @:unknown@ (to avoid creating Symbols based on possibly unsafe input).
74
+ * The Raydebug scanner highlights unknown token kinds as @:plain@.
75
+ * The Debug encoder refactored; use DebugLint if you want strict checking now..
76
+ * The Debug encoder will not warn about errors in the token stream.
77
+ * Plugin does not warn about fallback when default is defined.
78
+ * PluginHost now works with Strings instead of Symbols internally (to avoid using @#to_sym@).
41
79
42
80
h2. Changes in 1.0.9
43
81
@@ -447,6 +485,3 @@ The helper classes were cleaned up; see above for details.
447
485
448
486
* *CHANGED* @Plugin@ API was simplified and stripped of all unnecessary features.
449
487
* *CHANGED* Moved @GZip@ and @FileType@ libraries into @CodeRay@; cleaned them up.
450
-
451
-
452
-
0 commit comments