Skip to content

Commit

Permalink
Merge pull request #322 from yui-knk/freeze_input_text
Browse files Browse the repository at this point in the history
Freeze input grammar text
  • Loading branch information
yui-knk authored Dec 25, 2023
2 parents 834d42c + b6f89db commit a56b791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lrama/lexer/grammar_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class GrammarFile

def initialize(path, text)
@path = path
@text = text
@text = text.freeze
end

def ==(other)
Expand Down

0 comments on commit a56b791

Please sign in to comment.