File tree 3 files changed +2
-3
lines changed
3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ def scan_tokens encoder, options
100
100
# TODO: scan over nested tags
101
101
xml_scanner . tokenize match , :tokens => encoder
102
102
value_expected = false
103
- next
104
103
105
104
elsif match = scan ( / [-+*=<>?:;,!&^|(\[ {~%]+ | \. (?!\d ) /x )
106
105
value_expected = true
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def scan_tokens(encoder, options)
76
76
encoder . text_token ( match , :comment )
77
77
78
78
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
80
80
encoder . begin_group ( :string )
81
81
encoder . text_token ( match , :delimiter )
82
82
state = :long_string
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Please rename or remove it and run again to use the GitHub repository:
37
37
else
38
38
puts 'Downloading scanner test suite...'
39
39
sh 'git clone https://github.com/rubychan/coderay-scanner-tests.git test/scanners/'
40
- end
40
+ end unless ENV [ 'SKIP_UPDATE_SCANNER_SUITE' ]
41
41
end
42
42
43
43
namespace :scanner do
You can’t perform that action at this time.
0 commit comments