Locally add prismjs
This commit is contained in:
parent
35af792c6a
commit
6aa044cf9b
701 changed files with 35787 additions and 0 deletions
54
node_modules/prismjs/components/prism-turtle.js
generated
vendored
Normal file
54
node_modules/prismjs/components/prism-turtle.js
generated
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
Prism.languages.turtle = {
|
||||
'comment': {
|
||||
pattern: /#.*/,
|
||||
greedy: true
|
||||
},
|
||||
'multiline-string': {
|
||||
pattern: /"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,
|
||||
greedy: true,
|
||||
alias: 'string',
|
||||
inside: {
|
||||
'comment': /#.*/
|
||||
}
|
||||
},
|
||||
'string': {
|
||||
pattern: /"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,
|
||||
greedy: true
|
||||
},
|
||||
'url': {
|
||||
pattern: /<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,
|
||||
greedy: true,
|
||||
inside: {
|
||||
'punctuation': /[<>]/
|
||||
}
|
||||
},
|
||||
'function': {
|
||||
pattern: /(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,
|
||||
inside: {
|
||||
'local-name': {
|
||||
pattern: /([^:]*:)[\s\S]+/,
|
||||
lookbehind: true
|
||||
},
|
||||
'prefix': {
|
||||
pattern: /[\s\S]+/,
|
||||
inside: {
|
||||
'punctuation': /:/
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
'number': /[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,
|
||||
'punctuation': /[{}.,;()[\]]|\^\^/,
|
||||
'boolean': /\b(?:false|true)\b/,
|
||||
'keyword': [
|
||||
/(?:\ba|@prefix|@base)\b|=/,
|
||||
/\b(?:base|graph|prefix)\b/i
|
||||
],
|
||||
'tag': {
|
||||
pattern: /@[a-z]+(?:-[a-z\d]+)*/i,
|
||||
inside: {
|
||||
'punctuation': /@/
|
||||
}
|
||||
}
|
||||
};
|
||||
Prism.languages.trig = Prism.languages['turtle'];
|
Loading…
Add table
Add a link
Reference in a new issue