/usr/lib/ruby/vendor_ruby/treetop/polyglot.rb is in ruby-treetop 1.4.10-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | module Treetop
module Polyglot
VALID_GRAMMAR_EXT = ['treetop', 'tt']
VALID_GRAMMAR_EXT_REGEXP = /\.(#{VALID_GRAMMAR_EXT.join('|')})\Z/o
end
end
require 'polyglot'
Polyglot.register(Treetop::Polyglot::VALID_GRAMMAR_EXT, Treetop)
|