diff --git a/README.md b/README.md index 76712f4..34e7125 100644 --- a/README.md +++ b/README.md @@ -241,7 +241,6 @@ $element = dW\Lit\Highlight::toElement($code, $grammar->scopeName); * SCSS * Shell (Bash) * Shell session (Bash) -* Smarty * SQL * SQL (Mustache) * Textile diff --git a/data/text.html.smarty.json b/data/text.html.smarty.json deleted file mode 100644 index caeaa81..0000000 --- a/data/text.html.smarty.json +++ /dev/null @@ -1,201 +0,0 @@ -{ - "fileTypes": [ - "tpl" - ], - "scopeName": "text.html.smarty", - "foldingStartMarker": "\\{%?", - "foldingStopMarker": "%?\\}", - "name": "Smarty", - "patterns": [ - { - "include": "#comments" - }, - { - "include": "#blocks" - }, - { - "include": "text.html.basic" - } - ], - "repository": { - "blocks": { - "patterns": [ - { - "begin": "(\\{%?)", - "beginCaptures": { - "1": { - "name": "punctuation.section.embedded.begin.smarty" - } - }, - "end": "(%?\\})", - "endCaptures": { - "1": { - "name": "punctuation.section.embedded.end.smarty" - } - }, - "name": "source.smarty", - "patterns": [ - { - "include": "#strings" - }, - { - "include": "#variables" - }, - { - "include": "#lang" - } - ] - } - ] - }, - "comments": { - "patterns": [ - { - "begin": "(\\{%?)\\*", - "beginCaptures": { - "1": { - "name": "punctuation.definition.comment.smarty" - } - }, - "end": "\\*(%?\\})", - "name": "comment.block.smarty", - "patterns": [] - } - ] - }, - "lang": { - "patterns": [ - { - "match": "(!==|!=|!|<=|>=|<|>|===|==|%|&&|\\|\\|)|\\b(and|or|eq|neq|ne|gte|gt|ge|lte|lt|le|not|mod)\\b", - "name": "keyword.operator.smarty" - }, - { - "match": "\\b(TRUE|FALSE|true|false)\\b", - "name": "constant.language.smarty" - }, - { - "match": "\\b(php|if|else|elseif|foreach|foreachelse|for|section|switch|case|break|default)\\b", - "name": "keyword.control.smarty" - }, - { - "captures": { - "0": { - "name": "variable.parameter.smarty" - } - }, - "match": "\\b([a-zA-Z]+)=", - "name": "meta.attribute.smarty" - }, - { - "match": "\\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", - "name": "support.function.built-in.smarty" - }, - { - "match": "\\|(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)", - "name": "support.function.variable-modifier.smarty" - } - ] - }, - "strings": { - "patterns": [ - { - "begin": "'", - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin.smarty" - } - }, - "end": "'", - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end.smarty" - } - }, - "name": "string.quoted.single.smarty", - "patterns": [ - { - "match": "\\\\.", - "name": "constant.character.escape.smarty" - } - ] - }, - { - "begin": "\"", - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin.smarty" - } - }, - "end": "\"", - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end.smarty" - } - }, - "name": "string.quoted.double.smarty", - "patterns": [ - { - "match": "\\\\.", - "name": "constant.character.escape.smarty" - } - ] - } - ] - }, - "variables": { - "patterns": [ - { - "captures": { - "1": { - "name": "punctuation.definition.variable.smarty" - } - }, - "match": "\\b(\\$)Smarty\\.", - "name": "variable.other.global.smarty" - }, - { - "captures": { - "1": { - "name": "punctuation.definition.variable.smarty" - }, - "2": { - "name": "variable.other.smarty" - } - }, - "match": "(\\$)([a-zA-Z_][a-zA-Z0-9_]*)\\b", - "name": "variable.other.smarty" - }, - { - "captures": { - "1": { - "name": "keyword.operator.smarty" - }, - "2": { - "name": "variable.other.property.smarty" - } - }, - "match": "(->)([a-zA-Z_][a-zA-Z0-9_]*)\\b", - "name": "variable.other.smarty" - }, - { - "captures": { - "1": { - "name": "keyword.operator.smarty" - }, - "2": { - "name": "meta.function-call.object.smarty" - }, - "3": { - "name": "punctuation.definition.variable.smarty" - }, - "4": { - "name": "punctuation.definition.variable.smarty" - } - }, - "match": "(->)([a-zA-Z_][a-zA-Z0-9_]*)(\\().*?(\\))", - "name": "variable.other.smarty" - } - ] - } - } -} diff --git a/run b/run index 69eb5d5..c3f089d 100755 --- a/run +++ b/run @@ -113,7 +113,6 @@ atom/language-ruby-on-rails zargony/atom-language-rust atom/language-sass atom/language-shellscript -MaxGiting/atom-language-smarty atom/language-sql kelvin13/atom-swift-89 atom/language-text