|
|
|
@ -3186,6 +3186,19 @@ Prism.languages.sql = {
|
|
|
|
|
'punctuation': /[;[\]()`,.]/
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Prism.languages.liquid = {
|
|
|
|
|
keyword:/\b(?:comment|endcomment|if|elsif|else|endif|unless|endunless|for|endfor|case|endcase|when|in|break|assign|continue|limit|offset|range|reversed|raw|endraw|capture|endcapture|tablerow|endtablerow)\b/,
|
|
|
|
|
number:/\b0b[01]+\b|\b0x(?:\.[\da-fp-]+|[\da-f]+(?:\.[\da-fp-]+)?)\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?[df]?/i,
|
|
|
|
|
operator:{
|
|
|
|
|
pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]?|\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m,
|
|
|
|
|
lookbehind:!0
|
|
|
|
|
},
|
|
|
|
|
function:{
|
|
|
|
|
pattern:/(^|[\s;|&])(?:append|prepend|capitalize|cycle|cols|increment|decrement|abs|at_least|at_most|ceil|compact|concat|date|default|divided_by|downcase|escape|escape_once|first|floor|join|last|lstrip|map|minus|modulo|newline_to_br|plus|remove|remove_first|replace|replace_first|reverse|round|rstrip|size|slice|sort|sort_natural|split|strip|strip_html|strip_newlines|times|truncate|truncatewords|uniq|upcase|url_decode|url_encode|include|paginate)(?=$|[\s;|&])/,
|
|
|
|
|
lookbehind:!0
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
(function (Prism) {
|
|
|
|
|
|
|
|
|
|
Prism.languages.typescript = Prism.languages.extend('javascript', {
|
|
|
|
@ -3305,4 +3318,3 @@ Prism.languages.sql = {
|
|
|
|
|
Prism.languages.yml = Prism.languages.yaml;
|
|
|
|
|
|
|
|
|
|
}(Prism));
|
|
|
|
|
|
|
|
|
|