source: node_modules/prismjs/components/prism-ebnf.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: 462 bytes
Line 
1Prism.languages.ebnf = {
2 'comment': /\(\*[\s\S]*?\*\)/,
3 'string': {
4 pattern: /"[^"\r\n]*"|'[^'\r\n]*'/,
5 greedy: true
6 },
7 'special': {
8 pattern: /\?[^?\r\n]*\?/,
9 greedy: true,
10 alias: 'class-name'
11 },
12
13 'definition': {
14 pattern: /^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,
15 lookbehind: true,
16 alias: ['rule', 'keyword']
17 },
18 'rule': /\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,
19
20 'punctuation': /\([:/]|[:/]\)|[.,;()[\]{}]/,
21 'operator': /[-=|*/!]/
22};
Note: See TracBrowser for help on using the repository browser.