Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
336 lines (335 sloc) 7.93 KB
<?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>tpl</string>
</array>
<key>injections</key>
<dict>
<key>text.html.smarty - (meta.embedded | meta.tag | comment.block), L:text.html.smarty meta.tag</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comments</string>
</dict>
<dict>
<key>include</key>
<string>#blocks</string>
</dict>
</array>
</dict>
</dict>
<key>keyEquivalent</key>
<string>^~S</string>
<key>name</key>
<string>Smarty</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>text.html.basic</string>
</dict>
</array>
<key>repository</key>
<dict>
<key>blocks</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>(\{%?)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>source.smarty</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.begin.smarty</string>
</dict>
</dict>
<key>contentName</key>
<string>source.smarty</string>
<key>end</key>
<string>(%?\})</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>source.smarty</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.section.embedded.end.smarty</string>
</dict>
</dict>
<key>name</key>
<string>meta.embedded.line.tag.smarty</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#strings</string>
</dict>
<dict>
<key>include</key>
<string>#variables</string>
</dict>
<dict>
<key>include</key>
<string>#lang</string>
</dict>
</array>
</dict>
</array>
</dict>
<key>comments</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>(\{%?)\*</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.smarty</string>
</dict>
</dict>
<key>end</key>
<string>\*(%?\})</string>
<key>name</key>
<string>comment.block.smarty</string>
<key>patterns</key>
<array/>
</dict>
</array>
</dict>
<key>lang</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>(!==|!=|!|&lt;=|&gt;=|&lt;|&gt;|===|==|%|&amp;&amp;|\|\|)|\b(and|or|eq|neq|ne|gte|gt|ge|lte|lt|le|not|mod)\b</string>
<key>name</key>
<string>keyword.operator.smarty</string>
</dict>
<dict>
<key>match</key>
<string>\b(TRUE|FALSE|true|false)\b</string>
<key>name</key>
<string>constant.language.smarty</string>
</dict>
<dict>
<key>match</key>
<string>\b(if|else|elseif|foreach|foreachelse|section|switch|case|break|default)\b</string>
<key>name</key>
<string>keyword.control.smarty</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>variable.parameter.smarty</string>
</dict>
</dict>
<key>match</key>
<string>\b([a-zA-Z]+)=</string>
<key>name</key>
<string>meta.attribute.smarty</string>
</dict>
<dict>
<key>match</key>
<string>\b(capture|config_load|counter|cycle|debug|eval|fetch|include_php|include|insert|literal|math|strip|rdelim|ldelim|assign|constant|block|html_[a-z_]*)\b</string>
<key>name</key>
<string>support.function.built-in.smarty</string>
</dict>
<dict>
<key>match</key>
<string>\|(capitalize|cat|count_characters|count_paragraphs|count_sentences|count_words|date_format|default|escape|indent|lower|nl2br|regex_replace|replace|spacify|string_format|strip_tags|strip|truncate|upper|wordwrap)</string>
<key>name</key>
<string>support.function.variable-modifier.smarty</string>
</dict>
</array>
</dict>
<key>strings</key>
<dict>
<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.smarty</string>
</dict>
</dict>
<key>end</key>
<string>'</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.smarty</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.single.smarty</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\.</string>
<key>name</key>
<string>constant.character.escape.smarty</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.smarty</string>
</dict>
</dict>
<key>end</key>
<string>"</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.smarty</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.double.smarty</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\.</string>
<key>name</key>
<string>constant.character.escape.smarty</string>
</dict>
</array>
</dict>
</array>
</dict>
<key>variables</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.smarty</string>
</dict>
</dict>
<key>match</key>
<string>\b(\$)Smarty\.</string>
<key>name</key>
<string>variable.other.global.smarty</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.smarty</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>variable.other.smarty</string>
</dict>
</dict>
<key>match</key>
<string>(\$)([a-zA-Z_][a-zA-Z0-9_]*)\b</string>
<key>name</key>
<string>variable.other.smarty</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.smarty</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>variable.other.property.smarty</string>
</dict>
</dict>
<key>match</key>
<string>(-&gt;)([a-zA-Z_][a-zA-Z0-9_]*)\b</string>
<key>name</key>
<string>variable.other.smarty</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.smarty</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>meta.function-call.object.smarty</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.smarty</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>punctuation.definition.variable.smarty</string>
</dict>
</dict>
<key>match</key>
<string>(-&gt;)([a-zA-Z_][a-zA-Z0-9_]*)(\().*?(\))</string>
<key>name</key>
<string>variable.other.smarty</string>
</dict>
</array>
</dict>
</dict>
<key>scopeName</key>
<string>text.html.smarty</string>
<key>uuid</key>
<string>4D6BBA54-E3FC-4296-9CA1-662B2AD537C6</string>
</dict>
</plist>