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:
383 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | Prism.languages.bnf = {
|
---|
| 2 | 'string': {
|
---|
| 3 | pattern: /"[^\r\n"]*"|'[^\r\n']*'/
|
---|
| 4 | },
|
---|
| 5 | 'definition': {
|
---|
| 6 | pattern: /<[^<>\r\n\t]+>(?=\s*::=)/,
|
---|
| 7 | alias: ['rule', 'keyword'],
|
---|
| 8 | inside: {
|
---|
| 9 | 'punctuation': /^<|>$/
|
---|
| 10 | }
|
---|
| 11 | },
|
---|
| 12 | 'rule': {
|
---|
| 13 | pattern: /<[^<>\r\n\t]+>/,
|
---|
| 14 | inside: {
|
---|
| 15 | 'punctuation': /^<|>$/
|
---|
| 16 | }
|
---|
| 17 | },
|
---|
| 18 | 'operator': /::=|[|()[\]{}*+?]|\.{3}/
|
---|
| 19 | };
|
---|
| 20 |
|
---|
| 21 | Prism.languages.rbnf = Prism.languages.bnf;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.