(function (Prism) { var keywords = /\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/; Prism.languages.typoscript = { comment: [ { // multiline comments /* */ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: true, }, { // double-slash comments - ignored when backslashes or colon is found in front // also ignored whenever directly after an equal-sign, because it would probably be an url without protocol pattern: /(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/, lookbehind: true, greedy: true, }, { // hash comments - ignored when leading quote is found for hex colors in strings pattern: /(^|[^"'])#.*/, lookbehind: true, greedy: true, }, ], function: [ { // old include style pattern: //, inside: { string: { pattern: /"[^"\r\n]*"|'[^'\r\n]*'/, inside: { keyword: keywords, }, }, keyword: { pattern: /INCLUDE_TYPOSCRIPT/, }, }, }, { // new include style pattern: /@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/, inside: { string: /"[^"\r\n]*"|'[^'\r\n]*'/, }, }, ], string: { pattern: /^([^=]*=[< ]?)(?:(?!\]\n).)*/, lookbehind: true, inside: { function: /\{\$.*\}/, // constants include keyword: keywords, number: /^\d+$/, punctuation: /[,|:]/, }, }, keyword: keywords, number: { // special highlighting for indexes of arrays in tags pattern: /\b\d+\s*[.{=]/, inside: { operator: /[.{=]/, }, }, tag: { pattern: /\.?[-\w\\]+\.?/, inside: { punctuation: /\./, }, }, punctuation: /[{}[\];(),.:|]/, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, }; Prism.languages.tsconfig = Prism.languages.typoscript; })(Prism); value=''/>
path: root/public/prism/prism-rust.js
blob: e88ae892a82ed064e832f79a2e6cdeae4f72dfb6 (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133