Skip to content

Commit 5c5954d

Browse files
committed
Merge branch 'master' into multiline-inline-diff
2 parents 5598df0 + a4b8b09 commit 5c5954d

File tree

7 files changed

+31
-519
lines changed

7 files changed

+31
-519
lines changed

Changes.textile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ p=. _This files lists all changes in the CodeRay library since the 0.9.8 release
66

77
h2. Changes in 1.0.7
88

9+
* Changed license from LGPL to MIT. [GH-25, thanks to jessehu]
910
* Fix issue with plugin files not being loaded. [GH-20, thanks to Will Read]
11+
* Fix HTML scanner bug: Don't choke on boolean attributes. [GH-26, thanks to jugglinmike]
1012

1113
h2. Changes in 1.0.6
1214

LICENSE

Lines changed: 0 additions & 504 deletions
This file was deleted.

MIT-LICENSE.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (C) 2005-2012 Kornelius Kalnbach <murphy@rubychan.de> (@murphy_karasu)
2+
3+
http://coderay.rubychan.de/
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

coderay.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
1111
# thanks to @Argorak for this solution
1212
# revision = 134 + (`git log --oneline | wc -l`.to_i)
1313
# s.version = "#{CodeRay::VERSION}.#{revision}rc1"
14-
s.version = "#{CodeRay::VERSION}.rc1"
14+
s.version = "#{CodeRay::VERSION}.rc2"
1515
end
1616

1717
s.authors = ['Kornelius Kalnbach']

lib/coderay.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@
7878
# Read this to get a general view what CodeRay provides.
7979
#
8080
# == Scanning
81-
#
82-
# Scanning means analysing an input string, splitting it up into Tokens.
83-
# Each Token knows about what type it is: string, comment, class name, etc.
81+
#
82+
# Scanning means analysing an input string, splitting it up into Tokens.
83+
# Each Token knows about what type it is: string, comment, class name, etc.
8484
#
85-
# Each +lang+ (language) has its own Scanner; for example, <tt>:ruby</tt> code is
86-
# handled by CodeRay::Scanners::Ruby.
85+
# Each +lang+ (language) has its own Scanner; for example, <tt>:ruby</tt> code is
86+
# handled by CodeRay::Scanners::Ruby.
8787
#
8888
# CodeRay.scan:: Scan a string in a given language into Tokens.
8989
# This is the most common method to use.

lib/coderay/helpers/word_list.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ module CodeRay
44
#
55
# <b>A Hash subclass designed for mapping word lists to token types.</b>
66
#
7-
# Copyright (c) 2006-2011 by murphy (Kornelius Kalnbach) <murphy rubychan de>
8-
#
9-
# License:: LGPL / ask the author
10-
# Version:: 2.0 (2011-05-08)
11-
#
127
# A WordList is a Hash with some additional features.
138
# It is intended to be used for keyword recognition.
149
#

lib/coderay/scanners/html.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,9 @@ def scan_tokens encoder, options
149149
if match = scan(/=/) #/
150150
encoder.text_token match, :operator
151151
state = :attribute_value
152-
elsif scan(/#{ATTR_NAME}/o) || scan(/#{TAG_END}/o)
153-
state = :attribute
154-
next
155152
else
156-
encoder.text_token getch, :error
157153
state = :attribute
154+
next
158155
end
159156

160157
when :attribute_value

0 commit comments

Comments
 (0)