Skip to content

Commit 9d0605e

Browse files
authored
Merge branch 'master' into handle-plus-minus-and-number
2 parents fc22e97 + 1261ff6 commit 9d0605e

File tree

10 files changed

+482
-141
lines changed

10 files changed

+482
-141
lines changed

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ notifications:
66
email:
77
88
rvm:
9-
- 1.9.3
10-
- 2.0.0
11-
- 2.1.10
129
- 2.2.7
1310
- 2.3.4
1411
- 2.4.1

appveyor.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ deploy: off
1010
environment:
1111
NOBENCHMARK: 1
1212
matrix:
13-
- ruby_version: "193"
14-
- ruby_version: "200"
15-
- ruby_version: "200-x64"
16-
- ruby_version: "21"
17-
- ruby_version: "21-x64"
1813
- ruby_version: "22"
1914
- ruby_version: "22-x64"
2015
- ruby_version: "23"

lib/rdoc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Error < RuntimeError; end
6565
##
6666
# RDoc version you are using
6767

68-
VERSION = '5.1.0'
68+
VERSION = '6.0.0.beta1'
6969

7070
##
7171
# Method visibilities

lib/rdoc/parser/ruby.rb

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,31 +2022,25 @@ def scan
20222022
def skip_optional_do_after_expression
20232023
skip_tkspace false
20242024
tk = get_tk
2025-
end_token = get_end_token tk
20262025

20272026
b_nest = 0
20282027
nest = 0
20292028
@scanner.continue = false
20302029

20312030
loop do
20322031
case tk
2033-
when TkSEMICOLON then
2032+
when TkSEMICOLON, TkNL then
20342033
break if b_nest.zero?
20352034
when TkLPAREN, TkfLPAREN then
20362035
nest += 1
2036+
when TkRPAREN then
2037+
nest -= 1
20372038
when TkBEGIN then
20382039
b_nest += 1
20392040
when TkEND then
20402041
b_nest -= 1
20412042
when TkDO
20422043
break if nest.zero?
2043-
when end_token then
2044-
if end_token == TkRPAREN
2045-
nest -= 1
2046-
break if @scanner.lex_state == :EXPR_END and nest.zero?
2047-
else
2048-
break unless @scanner.continue
2049-
end
20502044
when nil then
20512045
break
20522046
end

0 commit comments

Comments
 (0)