]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/leaf.js
1 /*! `leaf` grammar compiled for Highlight.js 11.11.1 */
3 var hljsGrammar
= (function () {
8 Description: A Swift-based templating language created for the Vapor project.
9 Website: https://docs.vapor.codes/leaf/overview
14 const IDENT
= /([A-Za-z_][A-Za-z_0-9]*)?/;
34 match: LITERALS
.join("|"),
38 match: /[A-Za-z_][A-Za-z_0-9]*/
42 match: /\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/
46 const INSIDE_DISPATCH
= {
56 PARAMS
.contains
.unshift(INSIDE_DISPATCH
);
71 // will start up after the ending `)` match from line ~44
72 // just to grab the trailing `:` if we can match it
106 hljs
.registerLanguage('leaf', hljsGrammar
);