source: node_modules/highlight.js/lib/languages/bnf.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 713 bytes
Line 
1/*
2Language: Backus–Naur Form
3Website: https://en.wikipedia.org/wiki/Backus–Naur_form
4Author: Oleg Efimov <efimovov@gmail.com>
5*/
6
7/** @type LanguageFn */
8function bnf(hljs) {
9 return {
10 name: 'Backus–Naur Form',
11 contains: [
12 // Attribute
13 {
14 className: 'attribute',
15 begin: /</,
16 end: />/
17 },
18 // Specific
19 {
20 begin: /::=/,
21 end: /$/,
22 contains: [
23 {
24 begin: /</,
25 end: />/
26 },
27 // Common
28 hljs.C_LINE_COMMENT_MODE,
29 hljs.C_BLOCK_COMMENT_MODE,
30 hljs.APOS_STRING_MODE,
31 hljs.QUOTE_STRING_MODE
32 ]
33 }
34 ]
35 };
36}
37
38module.exports = bnf;
Note: See TracBrowser for help on using the repository browser.