encoding: utf-8
FilterSeparator | = | /\|/ |
ArgumentSeparator | = | ',' |
FilterArgumentSeparator | = | ':' |
VariableAttributeSeparator | = | '.' |
TagStart | = | /\{\%/ |
TagEnd | = | /\%\}/ |
VariableSignature | = | /\(?[\w\-\.\[\]]\)?/ |
VariableSegment | = | /[\w\-]/ |
VariableStart | = | /\{\{/ |
VariableEnd | = | /\}\}/ |
VariableIncompleteEnd | = | /\}\}?/ |
QuotedString | = | /"[^"]*"|'[^']*'/ |
QuotedFragment | = | /#{QuotedString}|(?:[^\s,\|'"]|#{QuotedString})+/o |
StrictQuotedFragment | = | /"[^"]+"|'[^']+'|[^\s|:,]+/ |
FirstFilterArgument | = | /#{FilterArgumentSeparator}(?:#{StrictQuotedFragment})/o |
OtherFilterArgument | = | /#{ArgumentSeparator}(?:#{StrictQuotedFragment})/o |
SpacelessFilter | = | /^(?:'[^']+'|"[^"]+"|[^'"])*#{FilterSeparator}(?:#{StrictQuotedFragment})(?:#{FirstFilterArgument}(?:#{OtherFilterArgument})*)?/o |
Expression | = | /(?:#{QuotedFragment}(?:#{SpacelessFilter})*)/o |
TagAttributes | = | /(\w+)\s*\:\s*(#{QuotedFragment})/o |
AnyStartingTag | = | /\{\{|\{\%/ |
PartialTemplateParser | = | /#{TagStart}.*?#{TagEnd}|#{VariableStart}.*?#{VariableIncompleteEnd}/o |
TemplateParser | = | /(#{PartialTemplateParser}|#{AnyStartingTag})/o |
VariableParser | = | /\[[^\]]+\]|#{VariableSegment}+\??/o |
VERSION | = | "2.6.3" |