1 | Prism.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 | };
|