Skip to content

Commit f814db8

Browse files
committed
Follow #2581
Due to #2581, the test case for non_alphanumeric_methods.txt has also been restored. It also solved issues with `def self.`' not limited to constants for `tBACK_REF2` token. ```console $ bundle exec ruby -Ilib -rprism -rprism/translation/parser33 -ve \ 'buf = Parser::Source::Buffer.new("example.rb"); buf.source = "def self.`; end"; p Prism::Translation::Parser33.new.tokenize(buf)[2]' ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-darwin22] [[:kDEF, ["def", #<Parser::Source::Range example.rb 0...3>]], [:kSELF, ["self", #<Parser::Source::Range example.rb 4...8>]], [:tDOT, [".", #<Parser::Source::Range example.rb 8...9>]], [:tBACK_REF2, ["`", #<Parser::Source::Range example.rb 9...10>]], [:tSEMI, [";", #<Parser::Source::Range example.rb 10...11>]], [:kEND, ["end", #<Parser::Source::Range example.rb 12...15>]]] ```
1 parent b5e04e3 commit f814db8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/prism/parser_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ class ParserTest < TestCase
7676
"heredocs_leading_whitespace.txt",
7777
"heredocs_nested.txt",
7878
"indented_file_end.txt",
79-
"non_alphanumeric_methods.txt",
8079
"strings.txt",
8180
"xstring.txt"
8281
]

0 commit comments

Comments
 (0)