main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
638 bytes
|
Line | |
---|
1 | Prism.languages.processing = Prism.languages.extend('clike', {
|
---|
2 | 'keyword': /\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,
|
---|
3 | // Spaces are allowed between function name and parenthesis
|
---|
4 | 'function': /\b\w+(?=\s*\()/,
|
---|
5 | 'operator': /<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/
|
---|
6 | });
|
---|
7 |
|
---|
8 | Prism.languages.insertBefore('processing', 'number', {
|
---|
9 | // Special case: XML is a type
|
---|
10 | 'constant': /\b(?!XML\b)[A-Z][A-Z\d_]+\b/,
|
---|
11 | 'type': {
|
---|
12 | pattern: /\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,
|
---|
13 | alias: 'class-name'
|
---|
14 | }
|
---|
15 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.