Refactor Ripper-based optimization pipeline

by relying on Temple 0.8.2+ https://github.com/judofyr/temple/pull/127
This commit is contained in:
Takashi Kokubun 2019-09-14 00:38:57 +09:00
parent 003bf902e2
commit cc0a02ab36
No known key found for this signature in database
GPG Key ID: 6FFC433B12EE23DD
2 changed files with 3 additions and 5 deletions

View File

@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 2.1.0'
end
spec.add_dependency 'temple', '>= 0.8.0'
spec.add_dependency 'temple', '>= 0.8.2'
spec.add_dependency 'thor'
spec.add_dependency 'tilt'

View File

@ -25,10 +25,8 @@ module Hamlit
use Parser
use Compiler
use HTML
if Ripper.respond_to?(:lex) # No Ripper.lex in truffleruby
use StringSplitter
filter :StaticAnalyzer
end
use StringSplitter
filter :StaticAnalyzer
use Escapable
use ForceEscapable
filter :ControlFlow