You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
53 lines
1.1 KiB
Prism.languages.pcaxis = { |
|
'string': /"[^"]*"/, |
|
'keyword': { |
|
pattern: /((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/, |
|
lookbehind: true, |
|
greedy: true, |
|
inside: { |
|
'keyword': /^[-A-Z\d]+/, |
|
'language': { |
|
pattern: /^(\s*)\[[-\w]+\]/, |
|
lookbehind: true, |
|
inside: { |
|
'punctuation': /^\[|\]$/, |
|
'property': /[-\w]+/ |
|
} |
|
}, |
|
'sub-key': { |
|
pattern: /^(\s*)\S[\s\S]*/, |
|
lookbehind: true, |
|
inside: { |
|
'parameter': { |
|
pattern: /"[^"]*"/, |
|
alias: 'property' |
|
}, |
|
'punctuation': /^\(|\)$|,/ |
|
} |
|
} |
|
} |
|
}, |
|
'operator': /=/, |
|
'tlist': { |
|
pattern: /TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/, |
|
greedy: true, |
|
inside: { |
|
'function': /^TLIST/, |
|
'property': { |
|
pattern: /^(\s*\(\s*)\w+/, |
|
lookbehind: true |
|
}, |
|
'string': /"[^"]*"/, |
|
'punctuation': /[(),]/, |
|
'operator': /-/ |
|
} |
|
}, |
|
'punctuation': /[;,]/, |
|
'number': { |
|
pattern: /(^|\s)\d+(?:\.\d+)?(?!\S)/, |
|
lookbehind: true |
|
}, |
|
'boolean': /NO|YES/, |
|
}; |
|
|
|
Prism.languages.px = Prism.languages.pcaxis;
|
|
|