1 |
|
2 | (()=>{var e=(()=>{"use strict";return e=>{
|
3 | const n=e.regex,t=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],i=["get","set","args","call"]
|
4 | ;return{name:"AspectJ",keywords:t,illegal:/<\/|#/,
|
5 | contains:[e.COMMENT(/\/\*\*/,/\*\
|
6 | relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]
|
7 | }),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{
|
8 | className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,
|
9 | illegal:/[:;"\[\]]/,contains:[{
|
10 | beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"
|
11 | },e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:t.concat(i),
|
12 | excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,
|
13 | excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,
|
14 | contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{
|
15 | beginKeywords:"pointcut after before around throwing returning",end:/[)]/,
|
16 | excludeEnd:!1,illegal:/["\[\]]/,contains:[{
|
17 | begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,
|
18 | contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,
|
19 | relevance:0,excludeEnd:!1,keywords:t,illegal:/["\[\]]/,contains:[{
|
20 | begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:t.concat(i),relevance:0
|
21 | },e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{
|
22 | className:"function",
|
23 | begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,
|
24 | end:/[{;=]/,keywords:t,excludeEnd:!0,contains:[{
|
25 | begin:n.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,
|
26 | contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,
|
27 | relevance:0,keywords:t,
|
28 | contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]
|
29 | },e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{
|
30 | className:"meta",begin:/@[A-Za-z]+/}]}}})();hljs.registerLanguage("aspectj",e)
|
31 | })(); |
\ | No newline at end of file |