]> luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/ldif.js
Initial commit.
[flow-web.git] / static / highlight / languages / ldif.js
1 /*! `ldif` grammar compiled for Highlight.js 11.11.1 */
2 (function(){
3 var hljsGrammar = (function () {
4 'use strict';
5
6 /*
7 Language: LDIF
8 Contributors: Jacob Childress <jacobc@gmail.com>
9 Category: enterprise, config
10 Website: https://en.wikipedia.org/wiki/LDAP_Data_Interchange_Format
11 */
12
13 /** @type LanguageFn */
14 function ldif(hljs) {
15 return {
16 name: 'LDIF',
17 contains: [
18 {
19 className: 'attribute',
20 match: '^dn(?=:)',
21 relevance: 10
22 },
23 {
24 className: 'attribute',
25 match: '^\\w+(?=:)'
26 },
27 {
28 className: 'literal',
29 match: '^-'
30 },
31 hljs.HASH_COMMENT_MODE
32 ]
33 };
34 }
35
36 return ldif;
37
38 })();
39
40 hljs.registerLanguage('ldif', hljsGrammar);
41 })();