Skip to content

Commit 7589239

Browse files
committed
[GR-26781] Ruby 2.7: Comment lines can be placed between fluent dot now (#2172)
PullRequest: truffleruby/2214
2 parents 50b598a + c349be9 commit 7589239

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Compatibility:
2929
* Updated `Dir.{glob,[]}` to raise `ArgumentError` for nul-separated strings.
3030
* `Kernel#lambda` with no block in a method called with a block raises an exception (#2004, @ssnickolay).
3131
* Implemented `BigDecimal` as C extension to improve compatibility.
32+
* Comment lines can be placed between fluent dot now (#2004, @ssnickolay).
3233

3334
Performance:
3435

spec/tags/language/comment_tags.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/main/java/org/truffleruby/parser/lexer/RubyLexer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,9 @@ private int yylex() {
880880
case '\13': /* '\v' */
881881
spaceSeen = true;
882882
continue;
883+
case '#':
884+
pushback(c);
885+
continue loop;
883886
case '&':
884887
case '.': {
885888
if (peek('.') == (c == '&')) {

0 commit comments

Comments
 (0)