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:
963 bytes
|
Line | |
---|
1 | Prism.languages.actionscript = Prism.languages.extend('javascript', {
|
---|
2 | 'keyword': /\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,
|
---|
3 | 'operator': /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/
|
---|
4 | });
|
---|
5 | Prism.languages.actionscript['class-name'].alias = 'function';
|
---|
6 |
|
---|
7 | // doesn't work with AS because AS is too complex
|
---|
8 | delete Prism.languages.actionscript['parameter'];
|
---|
9 | delete Prism.languages.actionscript['literal-property'];
|
---|
10 |
|
---|
11 | if (Prism.languages.markup) {
|
---|
12 | Prism.languages.insertBefore('actionscript', 'string', {
|
---|
13 | 'xml': {
|
---|
14 | pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,
|
---|
15 | lookbehind: true,
|
---|
16 | inside: Prism.languages.markup
|
---|
17 | }
|
---|
18 | });
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.