You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
462 B
22 lines
462 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: /^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im, |
|
lookbehind: true, |
|
alias: ['rule', 'keyword'] |
|
}, |
|
'rule': /\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i, |
|
|
|
'punctuation': /\([:/]|[:/]\)|[.,;()[\]{}]/, |
|
'operator': /[-=|*/!]/ |
|
};
|
|
|