forked from Shopify/liquid-tmbundle
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
50 changed files
with
1,420 additions
and
1,037 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
name: CI Syntax Tests | ||
|
||
on: | ||
push: | ||
push: | ||
- '**' | ||
paths: | ||
- '.github/workflows/ci-syntax-tests.yml' | ||
- '**.sublime-syntax' | ||
- '**/syntax_test_*' | ||
- '**.tmPreferences' | ||
pull_request: | ||
branches: | ||
- '**' | ||
paths: | ||
- '.github/workflows/ci-syntax-tests.yml' | ||
- '**.sublime-syntax' | ||
- '**/syntax_test_*' | ||
- '**.tmPreferences' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
syntax_tests: | ||
name: Sublime Text ${{ matrix.build }} | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 # default is 6 hours! | ||
strategy: | ||
matrix: | ||
include: | ||
- build: 4134 | ||
default_packages: v4134 | ||
- build: latest | ||
default_packages: master | ||
steps: | ||
- name: Checkout Default Packages | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: sublimehq/Packages | ||
ref: ${{ matrix.default_packages }} | ||
path: st_syntax_tests/Data/Packages | ||
|
||
- name: Delete default package tests | ||
run: |- | ||
find st_syntax_tests/Data/Packages/*/ -type f -name 'syntax_test*' -exec rm -v '{}' \; | ||
- name: Prepare dummy syntaxes | ||
run: |- | ||
packages=st_syntax_tests/Data/Packages | ||
scopes=( | ||
source.ada | ||
source.akh | ||
source.arduino | ||
source.coffee | ||
source.dart | ||
source.shell.docker | ||
source.elixir | ||
source.shell.fish | ||
source.graphql | ||
text.http-request-response | ||
source.ini | ||
source.jade | ||
source.julia | ||
source.kotlin | ||
source.less | ||
source.mermaid | ||
source.nim | ||
source.powershell | ||
source.proto | ||
source.reason | ||
source.sass | ||
source.scheme | ||
source.scss | ||
source.stata | ||
text.html.svelte | ||
source.swift | ||
source.json.terraform | ||
source.toml | ||
text.html.twig | ||
source.verilog | ||
source.xonsh | ||
) | ||
mkdir -vp "$packages/Default" | ||
for scope in ${scopes[@]}; do | ||
cat << SYNTAX > "$packages/Default/$scope.sublime-syntax" | ||
%YAML 1.2 | ||
--- | ||
scope: $scope | ||
contexts: | ||
main: [] | ||
SYNTAX | ||
done | ||
- name: Checkout Liquid | ||
uses: actions/checkout@v3 | ||
with: | ||
path: st_syntax_tests/Data/Packages/Liquid | ||
|
||
- name: Run Syntax Tests for Sublime Text ${{ matrix.build }} | ||
run: |- | ||
if [[ "${{ matrix.build }}" == "latest" ]]; then | ||
wget -O st_syntax_tests.tar.xz https://download.sublimetext.com/latest/dev/linux/x64/syntax_tests | ||
else | ||
wget -O st_syntax_tests.tar.xz https://download.sublimetext.com/st_syntax_tests_build_${{ matrix.build }}_x64.tar.xz | ||
fi | ||
tar xf st_syntax_tests.tar.xz | ||
cd st_syntax_tests | ||
./syntax_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
Syntaxes/Markdown (Liquid).sublime-syntax | ||
# exclude from sublime-package | ||
.github/ export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
*.cmd export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<plist version="1.0"> | ||
<dict> | ||
<!-- | ||
Template begin and end punctuation to wrap snippets into, | ||
when expanding within {% liquid ... %} template code. | ||
These variables are used to share snippets accross | ||
plain text and template source code. | ||
--> | ||
<key>scope</key> | ||
<string>source.liquid</string> | ||
<key>settings</key> | ||
<dict> | ||
<key>shellVariables</key> | ||
<array> | ||
<dict> | ||
<key>name</key> | ||
<string>TM_TEMPLATE_START</string> | ||
<key>value</key> | ||
<string></string> | ||
</dict> | ||
<dict> | ||
<key>name</key> | ||
<string>TM_TEMPLATE_END</string> | ||
<key>value</key> | ||
<string></string> | ||
</dict> | ||
</array> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<plist version="1.0"> | ||
<dict> | ||
<!-- | ||
Template begin and end punctuation to wrap snippets into, | ||
when expanding within plain HTML, Markdown, CSS or JavaScript code. | ||
These variables are used to share snippets accross | ||
plain text and template source code. | ||
--> | ||
<key>scope</key> | ||
<string>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - - source.liquid - meta.interpolation.liquid</string> | ||
<key>settings</key> | ||
<dict> | ||
<key>shellVariables</key> | ||
<array> | ||
<dict> | ||
<key>name</key> | ||
<string>TM_TEMPLATE_START</string> | ||
<key>value</key> | ||
<string><![CDATA[{% ]]></string> | ||
</dict> | ||
<dict> | ||
<key>name</key> | ||
<string>TM_TEMPLATE_END</string> | ||
<key>value</key> | ||
<string><![CDATA[ %}]]></string> | ||
</dict> | ||
</array> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
{% assign ${1:variable} = ${2:value} %} | ||
${TM_TEMPLATE_START}assign ${1:variable} = ${0:value}${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>assign</tabTrigger> | ||
<description>liquid assign</description> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - (meta.tag.liquid | meta.object.liquid)</scope> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}block${2: ${1:header}}${TM_TEMPLATE_END}$0${TM_TEMPLATE_START}endblock${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>block</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid block</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}break${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>break</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid break</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
{% capture ${1:name} %} | ||
${2:content} | ||
{% endcapture %} | ||
${TM_TEMPLATE_START}capture ${1:name}${TM_TEMPLATE_END} | ||
$0 | ||
${TM_TEMPLATE_START}endcapture${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>capture</tabTrigger> | ||
<description>liquid capture</description> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - (meta.tag.liquid | meta.object.liquid)</scope> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
{% case ${1:variable} %} | ||
{% when '${2:matching?}' %} | ||
${3} | ||
{% endcase %} | ||
${TM_TEMPLATE_START}case ${1:variable}${TM_TEMPLATE_END} | ||
${TM_TEMPLATE_START}when '${2:matching?}'${TM_TEMPLATE_END} | ||
$0 | ||
${TM_TEMPLATE_START}endcase${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>case</tabTrigger> | ||
<description>liquid case switch</description> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - (meta.tag.liquid | meta.object.liquid)</scope> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}comment${TM_TEMPLATE_END}$0${TM_TEMPLATE_START}endcomment${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>comment</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid comment</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
{{ content_for_layout }} | ||
]]></content> | ||
<content><![CDATA[{{ content_for_layout }}]]></content> | ||
<tabTrigger>cfl</tabTrigger> | ||
<description>liquid content_for_layout</description> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - (meta.tag.liquid | meta.object.liquid)</scope> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[{{ $0 }}]]></content> | ||
<tabTrigger>va</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid context variable (var)</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}continue${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>continue</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid continue</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
{% cycle '${1:first value}', '${2:second value}' %} | ||
${TM_TEMPLATE_START}cycle '${1:first value}', '${2:second value}'${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>cycle</tabTrigger> | ||
<description>liquid cycle</description> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - (meta.tag.liquid | meta.object.liquid)</scope> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}decrement $0${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>inc</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid decrement</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}else${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>else</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid else</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}elsif $1${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>elsif</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid elsif</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}endblock${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>endblock</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid endblock</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}endcapture${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>endcapture</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid endcapture</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}endcase${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>endcase</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid endcase</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}endcomment${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>endcomment</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid endcomment</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}endfor${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>endfor</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid endfor</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}endif${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>endif</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid endif</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}endraw${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>endraw</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid endraw</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}endtablerow${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>endtablerow</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid endtablerow</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}endunless${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>endunless</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid endunless</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
{% for ${1:element} in ${2:collection} %} | ||
${3} | ||
{% endfor %} | ||
${TM_TEMPLATE_START}for ${1:element} in ${2:collection}${TM_TEMPLATE_END} | ||
$0 | ||
${TM_TEMPLATE_START}endfor${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>for</tabTrigger> | ||
<description>liquid for loop</description> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - (meta.tag.liquid | meta.object.liquid)</scope> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
${TM_TEMPLATE_START}form '${1:name}'${TM_TEMPLATE_END} | ||
$0 | ||
${TM_TEMPLATE_START}endform${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>form</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid form</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
{% if ${1:condition} %} | ||
${2:what to do} | ||
{% endif %} | ||
${TM_TEMPLATE_START}if ${1:condition}${TM_TEMPLATE_END} | ||
$0 | ||
${TM_TEMPLATE_START}endif${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>if</tabTrigger> | ||
<description>liquid if</description> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - (meta.tag.liquid | meta.object.liquid)</scope> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
{% if ${1:condition} %} | ||
${2:what to do} | ||
{% else %} | ||
${3:what to do else} | ||
{% endif %} | ||
${TM_TEMPLATE_START}if ${1:condition}${TM_TEMPLATE_END} | ||
$2 | ||
${TM_TEMPLATE_START}else${TM_TEMPLATE_END} | ||
$0 | ||
${TM_TEMPLATE_START}endif${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>ifelse</tabTrigger> | ||
<description>liquid if else</description> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - (meta.tag.liquid | meta.object.liquid)</scope> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
{% include $1 %} | ||
${TM_TEMPLATE_START}include $0${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>include</tabTrigger> | ||
<description>liquid include</description> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - (meta.tag.liquid | meta.object.liquid)</scope> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}increment $0${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>inc</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid increment</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
${TM_TEMPLATE_START}javascript${TM_TEMPLATE_END} | ||
$0 | ||
${TM_TEMPLATE_START}endjavascript${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>js</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid javascript</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}layout ${1:layout.liquid}${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>layout</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid layout</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}liquid $0${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>liquid</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid tag</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
{% cycle '${1:groupe name}': '${2:first value}', '${3:second value}' %} | ||
]]></content> | ||
<content><![CDATA[${TM_TEMPLATE_START}cycle '${1:groupe name}': '${2:first value}', '${3:second value}'${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>named</tabTrigger> | ||
<description>liquid named cycle</description> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - (meta.tag.liquid | meta.object.liquid)</scope> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
${TM_TEMPLATE_START}paginate ${1:collection} by ${2:10}${TM_TEMPLATE_END} | ||
$0 | ||
${TM_TEMPLATE_START}endpaginate${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>paginate</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid paginate</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
${TM_TEMPLATE_START}raw${TM_TEMPLATE_END} | ||
$0 | ||
${TM_TEMPLATE_START}endraw${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>raw</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid raw</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[${TM_TEMPLATE_START}render ${1:what}${TM_TEMPLATE_END}]]></content> | ||
<tabTrigger>render</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid render</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
${TM_TEMPLATE_START}section '${1:name}'${TM_TEMPLATE_END} | ||
$0 | ||
${TM_TEMPLATE_START}endsection${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>section</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid section</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
${TM_TEMPLATE_START}style${TM_TEMPLATE_END} | ||
$0 | ||
${TM_TEMPLATE_START}endstyle${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>style</tabTrigger> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
<description>liquid style</description> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
${TM_TEMPLATE_START}tablerow ${1:var} in ${2:vars}${3:${4: cols:${5:2}}${6: limit:${7:2}}${8: offset:${9:2}}}${TM_TEMPLATE_END} | ||
$0 | ||
${TM_TEMPLATE_START}endtablerow${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>tablerow</tabTrigger> | ||
<description>liquid tablerow</description> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
{% unless ${1:condition} %} | ||
${2:what to do} | ||
{% endunless %} | ||
${TM_TEMPLATE_START}unless ${1:condition}${TM_TEMPLATE_END} | ||
$0 | ||
${TM_TEMPLATE_START}endunless${TM_TEMPLATE_END} | ||
]]></content> | ||
<tabTrigger>unless</tabTrigger> | ||
<description>liquid unless</description> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - (meta.tag.liquid | meta.object.liquid)</scope> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<snippet> | ||
<content><![CDATA[ | ||
{% when '${1:matching?}' %} | ||
${2:what to do} | ||
${TM_TEMPLATE_START}when '${1:matching?}'${TM_TEMPLATE_END} | ||
$0 | ||
]]></content> | ||
<tabTrigger>when</tabTrigger> | ||
<description>liquid when</description> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - (meta.tag.liquid | meta.object.liquid)</scope> | ||
<scope>(text.html.liquid | text.html.markdown.liquid | source.css.liquid | source.js.liquid) - meta.interpolation.liquid</scope> | ||
</snippet> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
%YAML 1.2 | ||
--- | ||
# http://www.sublimetext.com/docs/syntax.html | ||
name: Markdown (Liquid) | ||
scope: text.html.markdown.liquid | ||
version: 2 | ||
|
||
extends: Packages/Markdown/Markdown.sublime-syntax | ||
|
||
contexts: | ||
prototype: | ||
- meta_prepend: true | ||
- include: scope:source.liquid | ||
|
||
html-content: | ||
- include: scope:text.html.liquid#html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.