4 class HtmlWithPhpPolyglot < Polyglot
6 def initialize(name, html, phplanguage)
9 @states = html.all_states + phplanguage.states
12 @transitions = html.all_transitions + phplanguage.transitions
13 @extra_transitions = []
16 @extra_transitions << StitchTransition.new(e("<?"), :html_markup, :php_code, :to, false, name)
17 @extra_transitions << StitchTransition.new(e("<?"), :html_comment, :php_code, :to, false, name)
18 @extra_transitions << StitchTransition.new(e("<?"), :html_squote, :php_code, :to, false, name)
19 @extra_transitions << StitchTransition.new(e("<?"), :html_dquote, :php_code, :to, false, name)
20 @extra_transitions << StitchTransition.new(e("?>"), :php_code, :return, :from, false, name)