Skip to content

Commit 526ec43

Browse files
author
James Brundage
committed
feat: Liquid Language Support ( Fixes #863 )
1 parent 11d0844 commit 526ec43

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Language function Liquid {
2+
<#
3+
.SYNOPSIS
4+
Liquid PipeScript Language Definition
5+
.DESCRIPTION
6+
Allows PipeScript to generate [Liquid](https://shopify.github.io/liquid/)
7+
#>
8+
[ValidatePattern("\.liquid$")]
9+
param()
10+
11+
# Liquid files have a `.liquid` extension.
12+
$FilePattern = '\.liquid$'
13+
14+
# Liquid Comments are `{% comment %}` and `{% endcomment %}`, respectively.
15+
$StartComment = "\{\%\s{1,}comment\s{1,}\%\}"
16+
$EndComment = "\{\%\s{1,}endcomment\s{1,}\%\}"
17+
18+
# PipeScript exists within liquid as block encased in a pseudocomment.
19+
$StartPattern = "\{\%\s{1,}(?>pipescript|\{)"
20+
$EndPattern = "(?>pipescript|\})\s{1,}\%\}"
21+
22+
$Website = 'https://shopify.github.io/liquid/'
23+
$ProjectURI = 'https://github.com/Shopify/liquid'
24+
}

0 commit comments

Comments
 (0)