Sha256: d4b5d340c2a9c03c0ec86891904bb3f1095df0eaba995055ce2018e0c7ec5d37
Contents?: true
Size: 860 Bytes
Versions: 28
Compression:
Stored size: 860 Bytes
Contents
$LOAD_PATH << 'lib' require 'oniguruma' if RUBY_VERSION < '1.9.0' require 'language_sniffer' gem 'plist' require 'plist' gem 'textpow1x' require 'textpow' gem 'ultraviolet1x' require 'uv' file = ARGV[0] text = File.read(file) language = LanguageSniffer.detect(file).language require 'ruco/syntax_parser' require 'ruco/array_processor' t = Time.now.to_f Ruco::SyntaxParser.syntax_for_lines(text.split("\n"), [language.name.downcase, language.lexer]) Ruco::SyntaxParser.syntax_for_lines(text.split("\n"), [language.name.downcase, language.lexer]) Ruco::SyntaxParser.syntax_for_lines(text.split("\n"), [language.name.downcase, language.lexer]) Ruco::SyntaxParser.syntax_for_lines(text.split("\n"), [language.name.downcase, language.lexer]) Ruco::SyntaxParser.syntax_for_lines(text.split("\n"), [language.name.downcase, language.lexer]) puts (Time.now.to_f - t)
Version data entries
28 entries across 28 versions & 1 rubygems