-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
39 lines (37 loc) · 918 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Prism.languages.flags = {
'comment': /\/\*[\s\S]*?\*\/|\/\/.*/,
'string': {
pattern: /"(?:[^\\"]|\\.)*"|'[^']*'/,
greedy: true
},
'keyword': {
pattern: /-\S*/ig,
lookbehind: true
},
'important': {
pattern: /(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,
lookbehind: true
},
'boolean': /\b(?:false|true)\b/,
'operator': /\+/,
'punctuation': /[{};:]/
};
Prism.languages.command = {
'comment': /\/\*[\s\S]*?\*\/|\/\/.*/,
'string': {
pattern: /"(?:[^\\"]|\\.)*"|'[^']*'/,
greedy: true
},
'keyword': {
pattern: /\b-\S*/ig,
lookbehind: true
},
'important': {
pattern: /(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,
lookbehind: true
},
'boolean': /\b(?:false|true)\b/,
'operator': /\+/,
'punctuation': /[{};:]/
};
Prism.languages.commandline = Prism.languages.command