]> luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/dust.js
Initial commit.
[flow-web.git] / static / highlight / es / languages / dust.js
1 /*! `dust` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar = (function () {
3 'use strict';
4
5 /*
6 Language: Dust
7 Requires: xml.js
8 Author: Michael Allen <michael.allen@benefitfocus.com>
9 Description: Matcher for dust.js templates.
10 Website: https://www.dustjs.com
11 Category: template
12 */
13
14 /** @type LanguageFn */
15 function dust(hljs) {
16 const EXPRESSION_KEYWORDS = 'if eq ne lt lte gt gte select default math sep';
17 return {
18 name: 'Dust',
19 aliases: [ 'dst' ],
20 case_insensitive: true,
21 subLanguage: 'xml',
22 contains: [
23 {
24 className: 'template-tag',
25 begin: /\{[#\/]/,
26 end: /\}/,
27 illegal: /;/,
28 contains: [
29 {
30 className: 'name',
31 begin: /[a-zA-Z\.-]+/,
32 starts: {
33 endsWithParent: true,
34 relevance: 0,
35 contains: [ hljs.QUOTE_STRING_MODE ]
36 }
37 }
38 ]
39 },
40 {
41 className: 'template-variable',
42 begin: /\{/,
43 end: /\}/,
44 illegal: /;/,
45 keywords: EXPRESSION_KEYWORDS
46 }
47 ]
48 };
49 }
50
51 return dust;
52
53 })();
54 ;
55 export default hljsGrammar;