Skip to content

Commit 161c17d

Browse files
committed
port a few tweaks from dsl branch
1 parent e15cf96 commit 161c17d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

lib/coderay/scanners/java_script.rb

Lines changed: 0 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy