Skip to content

Commit 8a796c8

Browse files
committed
- support cant_return
1 parent 1485867 commit 8a796c8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

lib/parser/ruby-next/parser_ext.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
require_relative "builder"
1010
require_relative "ast/processor"
1111

12+
require "parser/context"
13+
unless Parser::Context::FLAGS.include?(:cant_return)
14+
Parser::Context::FLAGS << :cant_return
15+
16+
class Parser::Context
17+
attr_accessor :cant_return
18+
end
19+
end
20+
1221
module Parser
1322
# Patch the base parser class to use custom builder and lexer
1423
module NextExt

lib/parser/ruby-next/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Parser
4-
NEXT_VERSION = "3.4.0.1"
4+
NEXT_VERSION = "3.4.0.2"
55
end

0 commit comments

Comments
 (0)