From: Armin Ronacher Date: Thu, 2 Apr 2009 12:36:56 +0000 (+0200) Subject: Moved tmbundle into tarfile (does not check out properly on windows) X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4435b43ec6779219924e0ce2cfb4490c8f75ad33;p=jinja2.git Moved tmbundle into tarfile (does not check out properly on windows) --HG-- branch : trunk --- diff --git a/ext/Jinja Templates.tmbundle/Commands/Help.tmCommand b/ext/Jinja Templates.tmbundle/Commands/Help.tmCommand deleted file mode 100644 index e119515..0000000 --- a/ext/Jinja Templates.tmbundle/Commands/Help.tmCommand +++ /dev/null @@ -1,31 +0,0 @@ - - - - - beforeRunningCommand - nop - command - . "$TM_SUPPORT_PATH/lib/webpreview.sh" -html_header "Jinja Help" "Jinja Templates" - -Markdown.pl <<'EOF' - -This document describes the commands of the TextMate Jinja Templates bundle and how you can use it. For general Jinja help you should read the documentation on the [Jinja website](http:/jinja.pocoo.org/ "Jinja Webpage"). - -This bundle supports Jinja1 and Jinja2. - -EOF - -html_footer - input - document - name - Help - output - showAsHTML - scope - source.jinja, text.html.jinja - uuid - 44B1526F-5825-40A5-AB42-6433F1DD02D9 - - diff --git a/ext/Jinja Templates.tmbundle/Commands/Validate Syntax.tmCommand b/ext/Jinja Templates.tmbundle/Commands/Validate Syntax.tmCommand deleted file mode 100644 index 804906f..0000000 --- a/ext/Jinja Templates.tmbundle/Commands/Validate Syntax.tmCommand +++ /dev/null @@ -1,59 +0,0 @@ - - - - - beforeRunningCommand - nop - command - . "$TM_SUPPORT_PATH/lib/webpreview.sh" -html_header "Jinja Syntax Validation" "Jinja Templates" - -export TMPFILE="$(mktemp -t tm_jinja_test__)" -cat /dev/stdin > $TMPFILE - -python <<'END' -try: - from jinja import Environment - from jinja.exceptions import TemplateSyntaxError - e = Environment() -except ImportError, e: - print "<h2>Error</h2>" - print "<p>Jinja is not installed on this system, cannot perform syntax check.</p>" -else: - import sys, os - from cgi import escape - - f = file(os.environ['TMPFILE']) - try: - source = f.read() - finally: - f.close() - try: - e.parse(source, os.environ['TM_FILEPATH']) - except TemplateSyntaxError, err: - print e.from_string(''' - <h2>Syntax Error in Line {{ err.lineno or '?' }}</h2> - <p>{{ err.message|e }}</p> - <p><a href="txmt://open/?url=file://{{ err.filename|urlencode }}&line={{ err.lineno }}">Go To Line</a></p> - ''').render(err=err) - else: - print '<h2>Success</h2>' - print '<p>no syntax errors found!</p>' -END - -html_footer -rm $TMPFILE - input - document - keyEquivalent - ^V - name - Validate Syntax - output - showAsHTML - scope - source.jinja, text.html.jinja - uuid - 07198D95-F344-47EB-B1F2-69F2DC10BA1F - - diff --git a/ext/Jinja Templates.tmbundle/Commands/Wrap in Tag.tmCommand b/ext/Jinja Templates.tmbundle/Commands/Wrap in Tag.tmCommand deleted file mode 100644 index 6343d2e..0000000 --- a/ext/Jinja Templates.tmbundle/Commands/Wrap in Tag.tmCommand +++ /dev/null @@ -1,26 +0,0 @@ - - - - - beforeRunningCommand - nop - command - #!/usr/bin/env python -import sys -sys.stdout.write("{% ${1:%s}$2 %}$3" % sys.stdin.read().replace('}', '\\}')) - fallbackInput - word - input - selection - keyEquivalent - ^@b - name - Wrap in Tag - output - insertAsSnippet - scope - source.jinja, text.html.jinja - uuid - 04309583-742D-4470-8FA7-A12EF5536215 - - diff --git a/ext/Jinja Templates.tmbundle/Commands/Wrap in Variable Tag.tmCommand b/ext/Jinja Templates.tmbundle/Commands/Wrap in Variable Tag.tmCommand deleted file mode 100644 index c488ee9..0000000 --- a/ext/Jinja Templates.tmbundle/Commands/Wrap in Variable Tag.tmCommand +++ /dev/null @@ -1,26 +0,0 @@ - - - - - beforeRunningCommand - nop - command - #!/usr/bin/env python -import sys -sys.stdout.write("{{ ${1:%s}$2 }}$3" % sys.stdin.read().replace('}', '\\}')) - fallbackInput - word - input - selection - keyEquivalent - ^@v - name - Wrap in Variable Tag - output - insertAsSnippet - scope - source.jinja, text.html.jinja - uuid - BD126F84-B849-407F-BE62-EF984946EB82 - - diff --git a/ext/Jinja Templates.tmbundle/Macros/No automatic Completion for {.tmMacro b/ext/Jinja Templates.tmbundle/Macros/No automatic Completion for {.tmMacro deleted file mode 100644 index 571bf38..0000000 --- a/ext/Jinja Templates.tmbundle/Macros/No automatic Completion for {.tmMacro +++ /dev/null @@ -1,27 +0,0 @@ - - - - - commands - - - argument - { - command - insertText: - - - command - deleteForward: - - - keyEquivalent - { - name - No automatic Completion for { - scope - source.jinja, text.html.jinja - uuid - 31E30D4A-5CA5-4E4A-9C13-AB8ED6C1EB94 - - diff --git a/ext/Jinja Templates.tmbundle/Preferences/Symbol List: Blocks.tmPreferences b/ext/Jinja Templates.tmbundle/Preferences/Symbol List: Blocks.tmPreferences deleted file mode 100644 index 1ea7d49..0000000 --- a/ext/Jinja Templates.tmbundle/Preferences/Symbol List: Blocks.tmPreferences +++ /dev/null @@ -1,19 +0,0 @@ - - - - - name - Symbol List: Blocks - scope - meta.scope.jinja.tag variable.other.jinja.block - settings - - showInSymbolList - 1 - symbolTransformation - s/^\s*([a-zA-Z_][a-zA-Z0-9_]*)/block $1/ - - uuid - 889E682B-196A-4424-8A87-EBFDC86BAAFC - - diff --git a/ext/Jinja Templates.tmbundle/Snippets/Block.tmSnippet b/ext/Jinja Templates.tmbundle/Snippets/Block.tmSnippet deleted file mode 100644 index c5943dd..0000000 --- a/ext/Jinja Templates.tmbundle/Snippets/Block.tmSnippet +++ /dev/null @@ -1,18 +0,0 @@ - - - - - content - {% block ${1:name} %} - $2 -{% endblock %} - name - Block - scope - source.jinja, text.html.jinja - tabTrigger - block - uuid - 152FEFB6-EE41-47D1-B9AD-4E30AF64406C - - diff --git a/ext/Jinja Templates.tmbundle/Snippets/Complete Block.tmSnippet b/ext/Jinja Templates.tmbundle/Snippets/Complete Block.tmSnippet deleted file mode 100644 index 5be9823..0000000 --- a/ext/Jinja Templates.tmbundle/Snippets/Complete Block.tmSnippet +++ /dev/null @@ -1,16 +0,0 @@ - - - - - content - {% $0 %} - name - Complete Block - scope - source.jinja, text.html.jinja - tabTrigger - {% - uuid - 08A0C481-0E5A-425E-9486-EC7D681DA01D - - diff --git a/ext/Jinja Templates.tmbundle/Snippets/Complete Variable.tmSnippet b/ext/Jinja Templates.tmbundle/Snippets/Complete Variable.tmSnippet deleted file mode 100644 index 1ee6e27..0000000 --- a/ext/Jinja Templates.tmbundle/Snippets/Complete Variable.tmSnippet +++ /dev/null @@ -1,16 +0,0 @@ - - - - - content - {{ $0 }} - name - Complete Variable - scope - source.jinja, text.html.jinja - tabTrigger - {{ - uuid - 502E364B-D4D5-45F0-A996-5E71B3E5B7B6 - - diff --git a/ext/Jinja Templates.tmbundle/Snippets/Extends.tmSnippet b/ext/Jinja Templates.tmbundle/Snippets/Extends.tmSnippet deleted file mode 100644 index f3981f0..0000000 --- a/ext/Jinja Templates.tmbundle/Snippets/Extends.tmSnippet +++ /dev/null @@ -1,16 +0,0 @@ - - - - - content - {% extends ${1:"${2:template}"} %} - name - Extends - scope - source.jinja, text.html.jinja - tabTrigger - extends - uuid - 9BE0D536-28D2-4BAB-ACDA-2DEFD0CF291A - - diff --git a/ext/Jinja Templates.tmbundle/Snippets/Filter.tmSnippet b/ext/Jinja Templates.tmbundle/Snippets/Filter.tmSnippet deleted file mode 100644 index 6e9b3f7..0000000 --- a/ext/Jinja Templates.tmbundle/Snippets/Filter.tmSnippet +++ /dev/null @@ -1,18 +0,0 @@ - - - - - content - {% filter ${1:filter} %} - $2 -{% endfilter %} - name - Filter - scope - source.jinja, text.html.jinja - tabTrigger - filter - uuid - 1437E81D-2EB6-412E-8D6E-48B4D3B0685E - - diff --git a/ext/Jinja Templates.tmbundle/Snippets/For.tmSnippet b/ext/Jinja Templates.tmbundle/Snippets/For.tmSnippet deleted file mode 100644 index 019d804..0000000 --- a/ext/Jinja Templates.tmbundle/Snippets/For.tmSnippet +++ /dev/null @@ -1,18 +0,0 @@ - - - - - content - {% for ${1:item} in ${2:sequence} %} - $3 -{% endfor %} - name - For - scope - source.jinja, text.html.jinja - tabTrigger - for - uuid - 2B7AD6C9-0811-43B9-8E12-BE30772C7453 - - diff --git a/ext/Jinja Templates.tmbundle/Snippets/If.tmSnippet b/ext/Jinja Templates.tmbundle/Snippets/If.tmSnippet deleted file mode 100644 index 620bb43..0000000 --- a/ext/Jinja Templates.tmbundle/Snippets/If.tmSnippet +++ /dev/null @@ -1,18 +0,0 @@ - - - - - content - {% if ${1:expr} %} - $2 -{% endif %} - name - If - scope - source.jinja, text.html.jinja - tabTrigger - if - uuid - 56CCF05B-99DA-4899-AFF2-438C61BFE6B7 - - diff --git a/ext/Jinja Templates.tmbundle/Snippets/Macro.tmSnippet b/ext/Jinja Templates.tmbundle/Snippets/Macro.tmSnippet deleted file mode 100644 index 311ffb2..0000000 --- a/ext/Jinja Templates.tmbundle/Snippets/Macro.tmSnippet +++ /dev/null @@ -1,18 +0,0 @@ - - - - - content - {% macro ${1:name}(${2:args}) %} - $3 -{% endmacro %} - name - Macro - scope - source.jinja, text.html.jinja - tabTrigger - macro - uuid - 2ECE58B8-7AB7-43DA-B00F-51C2533284AD - - diff --git a/ext/Jinja Templates.tmbundle/Syntaxes/HTML (Jinja Templates).tmLanguage b/ext/Jinja Templates.tmbundle/Syntaxes/HTML (Jinja Templates).tmLanguage deleted file mode 100644 index 3ef69f6..0000000 --- a/ext/Jinja Templates.tmbundle/Syntaxes/HTML (Jinja Templates).tmLanguage +++ /dev/null @@ -1,29 +0,0 @@ - - - - - fileTypes - - foldingStartMarker - (<(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\b.*?>|{%\s*(block|filter|for|if|macro|raw)) - foldingStopMarker - (</(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\b.*?>|{%\s*(endblock|endfilter|endfor|endif|endmacro|endraw)\s*%}) - name - HTML (Jinja Templates) - patterns - - - include - source.jinja - - - include - text.html.basic - - - scopeName - text.html.jinja - uuid - 488399C0-5D29-4704-BE85-E03A461C34E7 - - diff --git a/ext/Jinja Templates.tmbundle/Syntaxes/Jinja Templates.tmLanguage b/ext/Jinja Templates.tmbundle/Syntaxes/Jinja Templates.tmLanguage deleted file mode 100644 index 7c81eab..0000000 --- a/ext/Jinja Templates.tmbundle/Syntaxes/Jinja Templates.tmLanguage +++ /dev/null @@ -1,530 +0,0 @@ - - - - - fileTypes - - foldingStartMarker - ({%\s*(block|filter|for|if|macro|raw)) - foldingStopMarker - ({%\s*(endblock|endfilter|endfor|endif|endmacro|endraw)\s*%}) - name - Jinja Templates - patterns - - - begin - ({%)\s*(raw)\s*(%}) - captures - - 1 - - name - entity.other.jinja.delimiter.tag - - 2 - - name - keyword.control.jinja - - 3 - - name - entity.other.jinja.delimiter.tag - - - end - ({%)\s*(endraw)\s*(%}) - name - comment.block.jinja.raw - - - begin - {#-? - captures - - 0 - - name - entity.other.jinja.delimiter.comment - - - end - -?#} - name - comment.block.jinja - - - begin - {{-? - captures - - 0 - - name - entity.other.jinja.delimiter.variable - - - end - -?}} - name - meta.scope.jinja.variable - patterns - - - include - #expression - - - - - begin - {%-? - captures - - 0 - - name - entity.other.jinja.delimiter.tag - - - end - -?%} - name - meta.scope.jinja.tag - patterns - - - include - #expression - - - - - repository - - escaped_char - - match - \\x[0-9A-F]{2} - name - constant.character.escape.hex.jinja - - escaped_unicode_char - - captures - - 1 - - name - constant.character.escape.unicode.16-bit-hex.jinja - - 2 - - name - constant.character.escape.unicode.32-bit-hex.jinja - - 3 - - name - constant.character.escape.unicode.name.jinja - - - match - (\\U[0-9A-Fa-f]{8})|(\\u[0-9A-Fa-f]{4})|(\\N\{[a-zA-Z ]+\}) - - expression - - patterns - - - captures - - 1 - - name - keyword.control.jinja - - 2 - - name - variable.other.jinja.block - - - match - \s*\b(block)\s+([a-zA-Z_][a-zA-Z0-9_]*)\b - - - captures - - 1 - - name - keyword.control.jinja - - 2 - - name - variable.other.jinja.filter - - - match - \s*\b(filter)\s+([a-zA-Z_][a-zA-Z0-9_]*)\b - - - captures - - 1 - - name - keyword.control.jinja - - 2 - - name - variable.other.jinja.test - - - match - \s*\b(is)\s+([a-zA-Z_][a-zA-Z0-9_]*)\b - - - captures - - 1 - - name - keyword.control.jinja - - - match - (?<=\{\%-|\{\%)\s*\b([a-zA-Z_][a-zA-Z0-9_]*)\b(?!\s*[,=]) - - - match - \b(and|else|if|in|import|not|or|recursive|with(out)?\s+context)\b - name - keyword.control.jinja - - - match - \b(true|false|none)\b - name - constant.language.jinja - - - match - \b(loop|super|self|varargs|kwargs)\b - name - variable.language.jinja - - - match - [a-zA-Z_][a-zA-Z0-9_]* - name - variable.other.jinja - - - match - (\+|\-|\*\*|\*|//|/|%) - name - keyword.operator.arithmetic.jinja - - - captures - - 1 - - name - punctuation.other.jinja - - 2 - - name - variable.other.jinja.filter - - - match - (\|)([a-zA-Z_][a-zA-Z0-9_]*) - - - captures - - 1 - - name - punctuation.other.jinja - - 2 - - name - variable.other.jinja.attribute - - - match - (\.)([a-zA-Z_][a-zA-Z0-9_]*) - - - begin - \[ - captures - - 0 - - name - punctuation.other.jinja - - - end - \] - patterns - - - include - #expression - - - - - begin - \( - captures - - 0 - - name - punctuation.other.jinja - - - end - \) - patterns - - - include - #expression - - - - - begin - \{ - captures - - 0 - - name - punctuation.other.jinja - - - end - \} - patterns - - - include - #expression - - - - - match - (\.|:|\||,) - name - punctuation.other.jinja - - - match - (==|<=|=>|<|>|!=) - name - keyword.operator.comparison.jinja - - - match - = - name - keyword.operator.assignment.jinja - - - begin - " - beginCaptures - - 0 - - name - punctuation.definition.string.begin.jinja - - - end - " - endCaptures - - 0 - - name - punctuation.definition.string.end.jinja - - - name - string.quoted.double.jinja - patterns - - - include - #string - - - - - begin - ' - beginCaptures - - 0 - - name - punctuation.definition.string.begin.jinja - - - end - ' - endCaptures - - 0 - - name - punctuation.definition.string.end.jinja - - - name - string.quoted.single.jinja - patterns - - - include - #string - - - - - begin - @/ - beginCaptures - - 0 - - name - punctuation.definition.regexp.begin.jinja - - - end - / - endCaptures - - 0 - - name - punctuation.definition.regexp.end.jinja - - - name - string.regexp.jinja - patterns - - - include - #simple_escapes - - - - - - simple_escapes - - captures - - 1 - - name - constant.character.escape.newline.jinja - - 10 - - name - constant.character.escape.tab.jinja - - 11 - - name - constant.character.escape.vertical-tab.jinja - - 2 - - name - constant.character.escape.backlash.jinja - - 3 - - name - constant.character.escape.double-quote.jinja - - 4 - - name - constant.character.escape.single-quote.jinja - - 5 - - name - constant.character.escape.bell.jinja - - 6 - - name - constant.character.escape.backspace.jinja - - 7 - - name - constant.character.escape.formfeed.jinja - - 8 - - name - constant.character.escape.linefeed.jinja - - 9 - - name - constant.character.escape.return.jinja - - - match - (\\\n)|(\\\\)|(\\\")|(\\')|(\\a)|(\\b)|(\\f)|(\\n)|(\\r)|(\\t)|(\\v) - - string - - patterns - - - include - #simple_escapes - - - include - #escaped_char - - - include - #escaped_unicode_char - - - - - scopeName - source.jinja - uuid - CB0F3F8E-6062-4610-85B3-8905C61AD85A - - diff --git a/ext/Jinja Templates.tmbundle/info.plist b/ext/Jinja Templates.tmbundle/info.plist deleted file mode 100644 index 2470078..0000000 --- a/ext/Jinja Templates.tmbundle/info.plist +++ /dev/null @@ -1,108 +0,0 @@ - - - - - mainMenu - - items - - 85E26B4F-795C-4380-AA26-EF994D3F1220 - 8AC9FEED-B1BB-49A7-94FE-EAE734A90C79 - 44B1526F-5825-40A5-AB42-6433F1DD02D9 - ------------------------------------ - 07198D95-F344-47EB-B1F2-69F2DC10BA1F - - submenus - - 85E26B4F-795C-4380-AA26-EF994D3F1220 - - items - - 5B95AA2C-B0E7-4886-9A55-90C1939D39C8 - 24C0F9CE-D3F1-4677-8A2E-EFFE776098F0 - D3BE8551-A17F-47A4-A47D-02F00124F984 - C0C77C85-3A4E-4DAE-AEE3-533FA0DEA0C0 - 85C07823-2B9D-4631-88E7-AEF4E1BE9482 - 73F00DE1-17B0-4C8C-B495-82A3689EB6F1 - CE75CB61-2FDA-4139-B21E-7DE143FAFA1B - - name - Snippets - - 8AC9FEED-B1BB-49A7-94FE-EAE734A90C79 - - items - - 7E9487F0-B012-4735-96DA-124EF3C87B15 - 13A0482A-4EA3-406C-A74B-90131C529E25 - 4CCD42F3-8E6E-4B96-9D5D-BFB81E714948 - 21EA80D9-967D-4681-BD17-765F1688EE5A - 65CCCA35-3231-4B63-B67D-5FB596D833C7 - 3D708572-4CD6-40D6-9F3B-CC96784CC069 - 3416F5A3-C0A2-4B4B-ABBA-9EA40207E2B4 - 6721CF2A-9DA7-4A7E-85C2-FE609E100DE8 - FDE05A63-E81C-474C-A1A9-47FD862F39EE - 9B7F35A9-3A98-4736-9AB3-21BD9BFB5069 - FDFF242A-F3FB-4A4C-BE1A-F1311158B32B - 4BA654F6-F412-4AF9-9CEA-72BD1A709AF4 - 93EEDABE-BC52-4883-AF3D-DE4A44C3C246 - 307C3853-AA0B-441C-A3D4-DE5CAE2C1673 - 0A6ECEB6-410E-4CF5-823E-139E8769BA16 - FBD6F4B2-3206-4CA9-AE99-B2C78149A357 - 93E22AC4-B2B8-426D-89C9-FB416F24F975 - 6B7CA02D-D6CF-4F16-9A1E-7610DAEBB43F - 7F5037F1-CCC2-4179-98CA-66D001144AC2 - 6F1D6BEF-3D53-4EC8-9C42-DF0D1D2E68C5 - 78EEA703-C74E-4D71-9DDA-5674E3AB50D7 - 1B45C5DE-21D2-4E2A-B7C6-794C9D7ECB99 - B964A222-F305-44C9-B23C-0D2A55112C43 - C2DF4AC6-C586-4F6C-9A97-916558C248D7 - 7DE5D7CF-81BB-4AB3-A9B8-938D47918237 - 95E641E1-CAA4-4984-B406-54FEC11D5F1B - E0F620DA-1CDA-4913-AD04-CAC8C63089D8 - E527CC83-06C6-4B54-8FDC-61FB4554B251 - 27647146-46AC-4F2A-9069-178E359E55DF - D64E1E71-A89E-4349-8178-97BC06A5B35F - 866F74E0-D58C-4BCB-A256-3D94CFB612D9 - AE1A2C7A-2D10-466F-9EB0-E8B540E7BA6E - 2EB9BB55-E38C-4FA9-81B7-73B1A73F65C7 - B99D5C37-BE6D-4397-9F32-90BD1A02E016 - A199B66F-5B1A-4210-9B22-1FC6738EAD76 - 3F749711-C818-41C2-8FB0-844CD2839617 - 823ABA67-7CA7-4F4F-ACC1-7D84AAC56469 - 1C0A622E-7F37-437F-95A3-5342DEA80B4E - DEDD7EB3-FFD2-4BFD-8D59-5DA8ED0F567F - 40423A4E-9ED4-402C-A5BB-193797A73101 - 6000AFC3-4398-4500-B055-296D17DDAB48 - CA8BCFEA-2BDB-4CB8-8E31-6388ECEF05BB - - name - Filters - - - - name - Jinja Templates - ordering - - CB0F3F8E-6062-4610-85B3-8905C61AD85A - 488399C0-5D29-4704-BE85-E03A461C34E7 - 889E682B-196A-4424-8A87-EBFDC86BAAFC - 44B1526F-5825-40A5-AB42-6433F1DD02D9 - 07198D95-F344-47EB-B1F2-69F2DC10BA1F - BD126F84-B849-407F-BE62-EF984946EB82 - 04309583-742D-4470-8FA7-A12EF5536215 - 31E30D4A-5CA5-4E4A-9C13-AB8ED6C1EB94 - 08A0C481-0E5A-425E-9486-EC7D681DA01D - 502E364B-D4D5-45F0-A996-5E71B3E5B7B6 - 2B7AD6C9-0811-43B9-8E12-BE30772C7453 - 56CCF05B-99DA-4899-AFF2-438C61BFE6B7 - 1437E81D-2EB6-412E-8D6E-48B4D3B0685E - 152FEFB6-EE41-47D1-B9AD-4E30AF64406C - 2ECE58B8-7AB7-43DA-B00F-51C2533284AD - 9BE0D536-28D2-4BAB-ACDA-2DEFD0CF291A - - uuid - B4E6C4DD-43DB-473D-8E0F-662C5E64C31D - - diff --git a/ext/JinjaTemplates.tmbundle.tar.gz b/ext/JinjaTemplates.tmbundle.tar.gz new file mode 100644 index 0000000..65b7422 Binary files /dev/null and b/ext/JinjaTemplates.tmbundle.tar.gz differ