Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

init

  • Loading branch information...
commit 93a500ae4d79f5af3598bcb73a3305a9613250c7 0 parents
@nrw authored
241 Handlebars.JSON-tmLanguage
@@ -0,0 +1,241 @@
+{
+ "name": "Handlebars",
+ "uuid": "1d7c0a8c-2361-4f78-b98e-1eaf2a288d3f",
+ "scopeName": "text.html.handlebars",
+ "fileTypes": ["handlebars", "hbs"],
+
+ "foldingStartMarker": "(?x)(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\\b.*?>|<!--(?!.*-->)|\\{\\s*($|\\?>\\s*$|//|/\\*(.*\\*/\\s*$|(?!.*?\\*/)))|\\{\\{\\#)",
+ "foldingStopMarker": "(?x)(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>|^\\s*-->|(^|\\s)\\}|\\{\\{/)",
+
+ "patterns": [
+ { "include": "#partial_and_var" },
+ { "include": "#block_helper" },
+ { "include": "#end_block" },
+ { "include": "#html_tags" }
+ ],
+ "repository": {
+ "partial_and_var": {
+ "name": "meta.function.inline.other.handlebars",
+ "begin": "(\\{\\{\\{*>*)\\s*([a-zA-Z_-]+)",
+ "end": "(\\}\\}\\}*)",
+ "beginCaptures": {
+ "1": { "name": "support.constant.handlebars" },
+ "2": { "name": "variable.parameter.handlebars" }
+ },
+ "endCaptures": {
+ "1": { "name": "support.constant.handlebars" }
+ },
+ "patterns": [
+ ]
+ },
+ "block_helper": {
+ "name": "meta.function.block.start.handlebars.sproutcore",
+ "begin": "(\\{\\{\\#)([a-zA-Z_-]+)\\s+([a-zA-Z_-]+)",
+ "end": "(\\}\\})",
+
+ "beginCaptures": {
+ "1": { "name": "support.constant.handlebars" },
+ "2": { "name": "support.constant.handlebars" },
+ "3": { "name": "variable.parameter.handlebars" }
+ },
+ "endCaptures": {
+ "1": { "name": "support.constant.handlebars" }
+ },
+ "patterns": [
+ { "include": "#string_single_quoted" },
+ { "include": "#string_double_quoted" }
+ ]
+ },
+ "end_block": {
+ "name": "meta.function.block.end.handlebars.sproutcore",
+ "begin": "(\\{\\{/)([a-zA-Z_-]+)\\s*",
+ "end": "(\\}\\})",
+ "beginCaptures": {
+ "1": { "name": "support.constant.handlebars" },
+ "2": { "name": "support.constant.handlebars" }
+ },
+ "endCaptures": {
+ "1": { "name": "support.constant.handlebars" }
+ },
+ "patterns": [
+ ]
+ },
+
+ "string_double_quoted": {
+ "name": "string.quoted.double.html",
+ "begin": "\"",
+ "end": "\"",
+ "beginCaptures": {
+ "0": { "name": "punctuation.definition.string.begin.html" }
+ },
+ "endCaptures": {
+ "0": { "name": "punctuation.definition.string.end.html" }
+ },
+ "patterns": [
+ { "include": "#partial_and_var" },
+ { "include": "#block_helper" },
+ { "include": "#end_block" }
+ ]
+ },
+ "string_single_quoted": {
+ "name": "string.quoted.single.html",
+ "begin": "'",
+ "end": "'",
+ "beginCaptures": {
+ "0": { "name": "punctuation.definition.string.begin.html" }
+ },
+ "endCaptures": {
+ "0": { "name": "punctuation.definition.string.end.html" }
+ },
+ "patterns": [
+ { "include": "#partial_and_var" },
+ { "include": "#block_helper" },
+ { "include": "#end_block" }
+ ]
+ },
+ "tag_generic_attribute": {
+ "name": "entity.other.attribute-name.html",
+ "match": "\\b([a-zA-Z\\-:]+)",
+ "patterns": [
+ { "include": "#partial_and_var" }
+ ]
+ },
+ "tag-id-attribute": {
+ "name": "meta.attribute-with-value.id.html",
+ "begin": "\\b(id)\\b\\s*(=)",
+ "end": "(?<=''|\")",
+ "captures": {
+ "1": { "name": "entity.other.attribute-name.id.html" },
+ "2": { "name": "punctuation.separator.key-value.html" }
+ },
+ "patterns": [
+ { "name": "string.quoted.double.html",
+ "contentName": "meta.toc-list.id.html",
+ "begin": "\"",
+ "end": "\"",
+ "beginCaptures": {
+ "0": { "name": "punctuation.definition.string.begin.html" }
+ },
+ "endCaptures": {
+ "0": { "name": "punctuation.definition.string.end.html" }
+ },
+ "patterns": [
+ { "include": "#partial_and_var" }
+ ]
+ },
+ { "name": "string.quoted.single.html",
+ "contentName": "meta.toc-list.id.html",
+ "begin": "'",
+ "end": "'",
+ "beginCaptures": {
+ "0": { "name": "punctuation.definition.string.begin.html" }
+ },
+ "endCaptures": {
+ "0": { "name": "punctuation.definition.string.end.html" }
+ },
+ "patterns": [
+ ]
+ }
+ ]
+ },
+
+ "html_tags": {
+ "patterns": [
+ { "name": "meta.tag.any.html",
+ "begin": "(<)([a-zA-Z0-9:]++)(?=[^>]*></\\2>)",
+ "end": "(>)(<)(/)(\\2)(>)",
+ "beginCaptures": {
+ "1": { "name": "punctuation.definition.tag.begin.html" },
+ "2": { "name": "entity.name.tag.html" }
+ },
+ "endCaptures": {
+ "1": { "name": "punctuation.definition.tag.end.html" },
+ "2": { "name": "punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html" },
+ "3": { "name": "punctuation.definition.tag.begin.html" },
+ "4": { "name": "entity.name.tag.html" },
+ "5": { "name": "punctuation.definition.tag.end.html" }
+ },
+ "patterns": [
+ { "include": "#tag_stuff" }
+ ]
+ },
+ { "name": "meta.tag.structure.any.html",
+ "begin": "(</?)((?i:body|head|html)\\b)",
+ "end": "(>)",
+ "captures": {
+ "1": { "name": "punctuation.definition.tag.begin.html" },
+ "2": { "name": "entity.name.tag.structure.any.html" }
+ },
+ "endCaptures": { "1": { "name": "punctuation.definition.tag.end.html" } },
+ "patterns": [ { "include": "#tag_stuff" } ]
+ },
+ { "name": "meta.tag.block.any.html",
+ "begin": "(</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\\b)",
+ "end": "(>)",
+ "beginCaptures": {
+ "1": { "name": "punctuation.definition.tag.begin.html" },
+ "2": { "name": "entity.name.tag.block.any.html" }
+ },
+ "endCaptures": { "1": { "name": "punctuation.definition.tag.end.html" } },
+ "patterns": [ { "include": "#tag_stuff" } ]
+ },
+ { "name": "meta.tag.inline.any.html",
+ "begin": "(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\\b)",
+ "end": "((?: ?/)?>)",
+ "beginCaptures": {
+ "1": { "name": "punctuation.definition.tag.begin.html" },
+ "2": { "name": "entity.name.tag.inline.any.html" }
+ },
+ "endCaptures": {
+ "1": { "name": "punctuation.definition.tag.end.html" }
+ },
+ "patterns": [ { "include": "#tag_stuff" } ]
+ },
+ { "name": "meta.tag.other.html",
+ "begin": "(</?)([a-zA-Z0-9:]+)",
+ "end": "(>)",
+ "beginCaptures": {
+ "1": { "name": "punctuation.definition.tag.begin.html" },
+ "2": { "name": "entity.name.tag.other.html" }
+ },
+ "endCaptures": { "1": { "name": "punctuation.definition.tag.end.html" } },
+ "patterns": [
+ { "include": "#tag_stuff" }
+ ]
+ },
+ { "include": "#entities" },
+ { "name": "invalid.illegal.incomplete.html",
+ "match": "<>"
+ },
+ { "name": "invalid.illegal.bad-angle-bracket.html",
+ "match": "<"
+ }
+ ]
+ },
+
+ "entities": {
+ "patterns": [
+ { "name": "constant.character.entity.html",
+ "match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",
+ "captures": {
+ "1": { "name": "punctuation.definition.entity.html" },
+ "3": { "name": "punctuation.definition.entity.html" }
+ }
+ },
+ { "name": "invalid.illegal.bad-ampersand.html",
+ "match": "&"
+ }
+ ]
+ },
+
+ "tag_stuff": {
+ "patterns": [
+ { "include": "#tag_id_attribute" },
+ { "include": "#tag_generic_attribute" },
+ { "include": "#string_double_quoted" },
+ { "include": "#string_single_quoted" }
+
+ ]
+ }
+ }
+}
611 Handlebars.tmLanguage
@@ -0,0 +1,611 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>fileTypes</key>
+ <array>
+ <string>handlebars</string>
+ <string>hbs</string>
+ </array>
+ <key>foldingStartMarker</key>
+ <string>(?x)(&lt;(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?&gt;|&lt;!--(?!.*--&gt;)|\{\s*($|\?&gt;\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))|\{\{\#)</string>
+ <key>foldingStopMarker</key>
+ <string>(?x)(&lt;/(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)&gt;|^\s*--&gt;|(^|\s)\}|\{\{/)</string>
+ <key>name</key>
+ <string>Handlebars</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#partial_and_var</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#block_helper</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#end_block</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#html_tags</string>
+ </dict>
+ </array>
+ <key>repository</key>
+ <dict>
+ <key>block_helper</key>
+ <dict>
+ <key>begin</key>
+ <string>(\{\{\#)([a-zA-Z_-]+)\s+([a-zA-Z_-]+)</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>support.constant.handlebars</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>support.constant.handlebars</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>name</key>
+ <string>variable.parameter.handlebars</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>(\}\})</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>support.constant.handlebars</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>meta.function.block.start.handlebars.sproutcore</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#string_single_quoted</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#string_double_quoted</string>
+ </dict>
+ </array>
+ </dict>
+ <key>end_block</key>
+ <dict>
+ <key>begin</key>
+ <string>(\{\{/)([a-zA-Z_-]+)\s*</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>support.constant.handlebars</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>support.constant.handlebars</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>(\}\})</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>support.constant.handlebars</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>meta.function.block.end.handlebars.sproutcore</string>
+ <key>patterns</key>
+ <array>
+ </array>
+ </dict>
+ <key>entities</key>
+ <dict>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.entity.html</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.entity.html</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>(&amp;)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)</string>
+ <key>name</key>
+ <string>constant.character.entity.html</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>&amp;</string>
+ <key>name</key>
+ <string>invalid.illegal.bad-ampersand.html</string>
+ </dict>
+ </array>
+ </dict>
+ <key>html_tags</key>
+ <dict>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>begin</key>
+ <string>(&lt;)([a-zA-Z0-9:]++)(?=[^&gt;]*&gt;&lt;/\2&gt;)</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.begin.html</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.tag.html</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>(&gt;)(&lt;)(/)(\2)(&gt;)</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.end.html</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html</string>
+ </dict>
+ <key>3</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.begin.html</string>
+ </dict>
+ <key>4</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.tag.html</string>
+ </dict>
+ <key>5</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.end.html</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>meta.tag.any.html</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#tag_stuff</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>(&lt;/?)((?i:body|head|html)\b)</string>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.begin.html</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.tag.structure.any.html</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>(&gt;)</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.end.html</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>meta.tag.structure.any.html</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#tag_stuff</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>(&lt;/?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\b)</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.begin.html</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.tag.block.any.html</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>(&gt;)</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.end.html</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>meta.tag.block.any.html</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#tag_stuff</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>(&lt;/?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\b)</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.begin.html</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.tag.inline.any.html</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>((?: ?/)?&gt;)</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.end.html</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>meta.tag.inline.any.html</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#tag_stuff</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>(&lt;/?)([a-zA-Z0-9:]+)</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.begin.html</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>entity.name.tag.other.html</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>(&gt;)</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.tag.end.html</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>meta.tag.other.html</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#tag_stuff</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#entities</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>&lt;&gt;</string>
+ <key>name</key>
+ <string>invalid.illegal.incomplete.html</string>
+ </dict>
+ <dict>
+ <key>match</key>
+ <string>&lt;</string>
+ <key>name</key>
+ <string>invalid.illegal.bad-angle-bracket.html</string>
+ </dict>
+ </array>
+ </dict>
+ <key>partial_and_var</key>
+ <dict>
+ <key>begin</key>
+ <string>(\{\{\{*&gt;*)\s*([a-zA-Z_-]+)</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>support.constant.handlebars</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>variable.parameter.handlebars</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>(\}\}\}*)</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>support.constant.handlebars</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>meta.function.inline.other.handlebars</string>
+ <key>patterns</key>
+ <array>
+ </array>
+ </dict>
+ <key>string_double_quoted</key>
+ <dict>
+ <key>begin</key>
+ <string>"</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.begin.html</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>"</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.end.html</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>string.quoted.double.html</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#partial_and_var</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#block_helper</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#end_block</string>
+ </dict>
+ </array>
+ </dict>
+ <key>string_single_quoted</key>
+ <dict>
+ <key>begin</key>
+ <string>'</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.begin.html</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>'</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.end.html</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>string.quoted.single.html</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#partial_and_var</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#block_helper</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#end_block</string>
+ </dict>
+ </array>
+ </dict>
+ <key>tag-id-attribute</key>
+ <dict>
+ <key>begin</key>
+ <string>\b(id)\b\s*(=)</string>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>entity.other.attribute-name.id.html</string>
+ </dict>
+ <key>2</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.separator.key-value.html</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>(?&lt;=''|")</string>
+ <key>name</key>
+ <string>meta.attribute-with-value.id.html</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>begin</key>
+ <string>"</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.begin.html</string>
+ </dict>
+ </dict>
+ <key>contentName</key>
+ <string>meta.toc-list.id.html</string>
+ <key>end</key>
+ <string>"</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.end.html</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>string.quoted.double.html</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#partial_and_var</string>
+ </dict>
+ </array>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>'</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.begin.html</string>
+ </dict>
+ </dict>
+ <key>contentName</key>
+ <string>meta.toc-list.id.html</string>
+ <key>end</key>
+ <string>'</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.string.end.html</string>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>string.quoted.single.html</string>
+ <key>patterns</key>
+ <array>
+ </array>
+ </dict>
+ </array>
+ </dict>
+ <key>tag_generic_attribute</key>
+ <dict>
+ <key>match</key>
+ <string>\b([a-zA-Z\-:]+)</string>
+ <key>name</key>
+ <string>entity.other.attribute-name.html</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#partial_and_var</string>
+ </dict>
+ </array>
+ </dict>
+ <key>tag_stuff</key>
+ <dict>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>include</key>
+ <string>#tag_id_attribute</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#tag_generic_attribute</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#string_double_quoted</string>
+ </dict>
+ <dict>
+ <key>include</key>
+ <string>#string_single_quoted</string>
+ </dict>
+ </array>
+ </dict>
+ </dict>
+ <key>scopeName</key>
+ <string>text.html.handlebars</string>
+ <key>uuid</key>
+ <string>1d7c0a8c-2361-4f78-b98e-1eaf2a288d3f</string>
+</dict>
+</plist>
BIN  Handlebars.tmLanguage.cache
Binary file not shown
9 readme.md
@@ -0,0 +1,9 @@
+# [Handlebars](http://handlebarsjs.com) package for Sublime Text 2
+
+Higher contrast Handlebars syntax highlighting.
+
+### How is it different from [this](https://github.com/drnic/Handlebars.tmbundle) and [this](https://github.com/MarkBorcherding/Handlebars.tmbundle)?
+
+- Colors of Handlebars expressions are selected to be in contrast with the surrounding html.
+- Handlebars expressions get syntax highlighting in html attributes.
+- Paramaeters passed to block expressions get syntax highlighting too.
Please sign in to comment.
Something went wrong with that request. Please try again.