Locally add prismjs
This commit is contained in:
parent
35af792c6a
commit
6aa044cf9b
701 changed files with 35787 additions and 0 deletions
22
node_modules/prismjs/components/prism-ebnf.js
generated
vendored
Normal file
22
node_modules/prismjs/components/prism-ebnf.js
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
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': /[-=|*/!]/
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue