1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{	scopeName = 'text.html.ss';
	fileTypes = ( 'ss' );
	foldingStartMarker = '<%\s[^end].*\s%>';
	foldingStopMarker = '<%\send.*\s%>';
	patterns = (
		{	name = 'keyword.control.ss';
			begin = '<%+(?!>)[-=]?';
			end = '-?%>';
			captures = { 0 = { name = 'punctuation.section.embedded.ruby'; }; };
			patterns = (
				{	name = 'comment.line.number-sign.ruby';
					match = '(#).*?(?=-?%>)';
					captures = { 1 = { name = 'punctuation.definition.comment.ruby'; }; };
				},
				{	include = 'source.ruby.rails'; },
			);
		},
		{	name = 'variable.ss';
			match = '\$[a-zA-Z0-9\.]*';
		},
		{	include = 'text.html.basic'; },
	);
}