Locally add prismjs
This commit is contained in:
parent
35af792c6a
commit
6aa044cf9b
701 changed files with 35787 additions and 0 deletions
21
node_modules/prismjs/components/prism-bnf.js
generated
vendored
Normal file
21
node_modules/prismjs/components/prism-bnf.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
Prism.languages.bnf = {
|
||||
'string': {
|
||||
pattern: /"[^\r\n"]*"|'[^\r\n']*'/
|
||||
},
|
||||
'definition': {
|
||||
pattern: /<[^<>\r\n\t]+>(?=\s*::=)/,
|
||||
alias: ['rule', 'keyword'],
|
||||
inside: {
|
||||
'punctuation': /^<|>$/
|
||||
}
|
||||
},
|
||||
'rule': {
|
||||
pattern: /<[^<>\r\n\t]+>/,
|
||||
inside: {
|
||||
'punctuation': /^<|>$/
|
||||
}
|
||||
},
|
||||
'operator': /::=|[|()[\]{}*+?]|\.{3}/
|
||||
};
|
||||
|
||||
Prism.languages.rbnf = Prism.languages.bnf;
|
Loading…
Add table
Add a link
Reference in a new issue