blob: ea2f95ea4bc0cd2500eff5f24690d0d11d85a802 (
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
|
Prism.languages.peoplecode = {
comment: RegExp(
[
// C-style multiline comments
/\/\*[\s\S]*?\*\//.source,
// REM comments
/\bREM[^;]*;/.source,
// Nested <* *> comments
/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,
// /+ +/ comments
/\/\+[\s\S]*?\+\//.source,
].join('|')
),
string: {
pattern: /'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,
greedy: true,
},
variable: /%\w+/,
'function-definition': {
pattern: /((?:^|[^\w-])(?:function|method)\s+)\w+/i,
|