<?xml version="1.0" encoding="UTF-8"?>
<injections>	
	
	<!--Inject into HTML tags and attributes-->
	<injection name="com.macrabbit.ruby.tags" selector="html.with-ruby tag.open" action="insert-after-children">
		<include syntax="erb" />
	</injection>
	<injection name="com.macrabbit.ruby.tag-attributes" selector="html.with-ruby attribute-value.string" action="replace-children">
		<include syntax="erb" />
	</injection>
	<injection name="com.macrabbit.ruby.close-tags" selector="html.with-ruby tag.close" action="replace-children">
		<include syntax="erb" />
	</injection>
	
	<!--Inject into embedded CSS-->
	<injection name="com.macrabbit.ruby.css" selector="html.with-ruby embedded.css *" action="attach-before-target">
		<include syntax="erb" />
	</injection>
	
	<!--Inject into embedded JS-->
	<injection name="com.macrabbit.ruby.js" selector="html.with-ruby embedded.js *" action="attach-before-target">
		<include syntax="erb" />
	</injection>
	
	<!--Cut-off the language with closing delimiters-->
	<injection name="com.macrabbit.ruby.cutoff" selector="html.with-ruby ruby comment.line" action="attach-before-target">
		<cut-off>%{1,2}></cut-off>
	</injection>
	
</injections>