Skip to content

Commit ec1fbc0

Browse files
committed
introduced snippet tag in ohm
1 parent cc8cbe5 commit ec1fbc0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/liquid-html-parser/grammar/liquid-html.ohm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Liquid <: Helpers {
7878
| liquidTagOpenIf
7979
| liquidTagOpenPaginate
8080
| liquidTagOpenUnless
81+
| liquidTagOpenSnippet
8182

8283
liquidTagOpen =
8384
| liquidTagOpenStrict
@@ -105,6 +106,7 @@ Liquid <: Helpers {
105106
liquidTagIncrement = liquidTagRule<"increment", variableSegmentAsLookupMarkup>
106107
liquidTagDecrement = liquidTagRule<"decrement", variableSegmentAsLookupMarkup>
107108
liquidTagOpenCapture = liquidTagOpenRule<"capture", variableSegmentAsLookupMarkup>
109+
liquidTagOpenSnippet = liquidTagOpenRule<"snippet", variableSegmentAsLookupMarkup>
108110
variableSegmentAsLookupMarkup = variableSegmentAsLookup space*
109111

110112
liquidTagSection = liquidTagRule<"section", liquidTagSectionMarkup>
@@ -322,6 +324,7 @@ Liquid <: Helpers {
322324
| "if"
323325
| "unless"
324326
| "tablerow"
327+
| "snippet"
325328
) endOfIdentifier
326329

327330
delimTag = "-%}" | "%}"

0 commit comments

Comments
 (0)