Locally add prismjs
This commit is contained in:
parent
35af792c6a
commit
6aa044cf9b
701 changed files with 35787 additions and 0 deletions
19
node_modules/prismjs/components/prism-llvm.js
generated
vendored
Normal file
19
node_modules/prismjs/components/prism-llvm.js
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
(function (Prism) {
|
||||
Prism.languages.llvm = {
|
||||
'comment': /;.*/,
|
||||
'string': {
|
||||
pattern: /"[^"]*"/,
|
||||
greedy: true,
|
||||
},
|
||||
'boolean': /\b(?:false|true)\b/,
|
||||
'variable': /[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,
|
||||
'label': /(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,
|
||||
'type': {
|
||||
pattern: /\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,
|
||||
alias: 'class-name',
|
||||
},
|
||||
'keyword': /\b[a-z_][a-z_0-9]*\b/,
|
||||
'number': /[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,
|
||||
'punctuation': /[{}[\];(),.!*=<>]/,
|
||||
};
|
||||
}(Prism));
|
Loading…
Add table
Add a link
Reference in a new issue