-
Notifications
You must be signed in to change notification settings - Fork 0
/
epp.js
32 lines (29 loc) · 881 Bytes
/
epp.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
Language: EPP (Embedded Puppet templating language)
Requires: xml.js, puppet.js
Author: Ben Ford <[email protected]>
Contributors: Antoine Musso <[email protected]>
Description: "Bridge" language defining fragments of Puppet in plain text within <% .. %>
Website: https://www.puppet.com/docs/puppet/8/lang_template_epp.html
Category: template
*/
/** @type LanguageFn */
export default function(hljs) {
return {
name: 'EPP',
// The actual content can be any type
subLanguage: [],
// Test sample is recognized as `mel`, disable auto-detection since it is
// "hard": https://github.com/highlightjs/highlight.js/issues/1213
disableAutodetect: true,
contains: [
hljs.COMMENT('<%#', '%>'),
{
begin: '<%[%=-]?', end: '[%-]?%>',
subLanguage: 'puppet',
excludeBegin: true,
excludeEnd: true
}
]
};
}