Skip to content

Commit eea17e0

Browse files
authored
Merge pull request #854 from mame/use-regexp-for-rawline-chars
Optimize RawLine by using a regexp instead of negative look-ahead rule
2 parents 4797f28 + 11c97b0 commit eea17e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
strategy:
88
matrix:
9-
ruby: [ 'head', '3.0', '2.7', '2.6', '2.5' ]
9+
ruby: [ 'head', '3.0', '2.7', '2.6' ]
1010
os:
1111
- windows-latest
1212
- ubuntu-latest
@@ -22,7 +22,7 @@ jobs:
2222
ruby-version: ${{ matrix.ruby }}
2323
bundler-cache: true # 'bundle install' and cache
2424
# Avoid issues on these platforms
25-
- if: ${{ matrix.ruby == '2.5' || matrix.ruby == '2.6' }}
25+
- if: ${{ matrix.ruby == '2.6' }}
2626
run: gem update --system
2727
- name: Run test
2828
run: bundle exec rake

lib/rdoc/markdown.kpeg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ StartList = &.
11351135
{ [] }
11361136

11371137
Line = @RawLine:a { a }
1138-
RawLine = ( < (!"\r" !"\n" .)* @Newline >
1138+
RawLine = ( < /[^\r\n]*/ @Newline >
11391139
| < .+ > @Eof ) { text }
11401140

11411141
SkipBlock = HtmlBlock

0 commit comments

Comments
 (0)