UNPKG

tripledoc

Version:

Library to read, create and update documents on a Solid Pod

23 lines (20 loc) 455 B
Prism.languages.ebnf = { 'comment': /\(\*[\s\S]*?\*\)/, 'string': { pattern: /"[^"\r\n]*"|'[^'\r\n]*'/, greedy: true }, 'special': { pattern: /\?[^?\r\n]*\?/, greedy: true, alias: 'class-name' }, 'definition': { pattern: /^(\s*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im, lookbehind: true, alias: ['rule', 'keyword'] }, 'rule': /[a-z]\w*(?:[ \t]+[a-z]\w*)*/i, 'punctuation': /\([:/]|[:/]\)|[.,;()[\]{}]/, 'operator': /[-=|*/!]/ };