Skip to content

Commit 0dc1ca3

Browse files
committed
Merge branch 'master' into possible-speedups
2 parents 8537875 + 161c17d commit 0dc1ca3

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

lib/coderay/scanners/java_script.rb

-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ def scan_tokens encoder, options
100100
# TODO: scan over nested tags
101101
xml_scanner.tokenize match, :tokens => encoder
102102
value_expected = false
103-
next
104103

105104
elsif match = scan(/ [-+*=<>?:;,!&^|(\[{~%]+ | \.(?!\d) /x)
106105
value_expected = true

lib/coderay/scanners/lua.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def scan_tokens(encoder, options)
7676
encoder.text_token(match, :comment)
7777

7878
elsif match = scan(/\[=*\[/) # [[ long (possibly multiline) string ]]
79-
num_equals = match.count("=") # Number must match for comment end
79+
num_equals = match.count("=") # Number must match for string end
8080
encoder.begin_group(:string)
8181
encoder.text_token(match, :delimiter)
8282
state = :long_string

rake_tasks/test.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Please rename or remove it and run again to use the GitHub repository:
3737
else
3838
puts 'Downloading scanner test suite...'
3939
sh 'git clone https://github.com/rubychan/coderay-scanner-tests.git test/scanners/'
40-
end
40+
end unless ENV['SKIP_UPDATE_SCANNER_SUITE']
4141
end
4242

4343
namespace :scanner do

0 commit comments

Comments
 (0)