]> luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/bnf.js
Initial commit.
[flow-web.git] / static / highlight / es / languages / bnf.js
1 /*! `bnf` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar = (function () {
3 'use strict';
4
5 /*
6 Language: Backus–Naur Form
7 Website: https://en.wikipedia.org/wiki/Backus–Naur_form
8 Category: syntax
9 Author: Oleg Efimov <efimovov@gmail.com>
10 */
11
12 /** @type LanguageFn */
13 function bnf(hljs) {
14 return {
15 name: 'Backus–Naur Form',
16 contains: [
17 // Attribute
18 {
19 className: 'attribute',
20 begin: /</,
21 end: />/
22 },
23 // Specific
24 {
25 begin: /::=/,
26 end: /$/,
27 contains: [
28 {
29 begin: /</,
30 end: />/
31 },
32 // Common
33 hljs.C_LINE_COMMENT_MODE,
34 hljs.C_BLOCK_COMMENT_MODE,
35 hljs.APOS_STRING_MODE,
36 hljs.QUOTE_STRING_MODE
37 ]
38 }
39 ]
40 };
41 }
42
43 return bnf;
44
45 })();
46 ;
47 export default hljsGrammar;