2c59ecdc82
merge salv's fix to remove keystone middleware: lp855151 one more 202->200 from tyler merge tylers additional 202 -> 200 changes merge additions to OVS readme describing running with multiple hosts merge brad's changes to make create API calls return 200, not 202 merge unit test for showing unset attachment merging API docs branch Merge: lp:~yinliu2/quantum/bug856564 Merge: lp:~bgh/quantum/bug850261 Change-Id: I56fe24c59f918737e57b562343c33ec6dcceac60
338 lines
5.1 KiB
JavaScript
338 lines
5.1 KiB
JavaScript
if (! this.sh_languages) {
|
|
this.sh_languages = {};
|
|
}
|
|
sh_languages['java'] = [
|
|
[
|
|
[
|
|
/\b(?:import|package)\b/g,
|
|
'sh_preproc',
|
|
-1
|
|
],
|
|
[
|
|
/\/\/\//g,
|
|
'sh_comment',
|
|
1
|
|
],
|
|
[
|
|
/\/\//g,
|
|
'sh_comment',
|
|
7
|
|
],
|
|
[
|
|
/\/\*\*/g,
|
|
'sh_comment',
|
|
8
|
|
],
|
|
[
|
|
/\/\*/g,
|
|
'sh_comment',
|
|
9
|
|
],
|
|
[
|
|
/\b[+-]?(?:(?:0x[A-Fa-f0-9]+)|(?:(?:[\d]*\.)?[\d]+(?:[eE][+-]?[\d]+)?))u?(?:(?:int(?:8|16|32|64))|L)?\b/g,
|
|
'sh_number',
|
|
-1
|
|
],
|
|
[
|
|
/"/g,
|
|
'sh_string',
|
|
10
|
|
],
|
|
[
|
|
/'/g,
|
|
'sh_string',
|
|
11
|
|
],
|
|
[
|
|
/(\b(?:class|interface))([ \t]+)([$A-Za-z0-9_]+)/g,
|
|
['sh_keyword', 'sh_normal', 'sh_classname'],
|
|
-1
|
|
],
|
|
[
|
|
/\b(?:abstract|assert|break|case|catch|class|const|continue|default|do|else|extends|false|final|finally|for|goto|if|implements|instanceof|interface|native|new|null|private|protected|public|return|static|strictfp|super|switch|synchronized|throw|throws|true|this|transient|try|volatile|while)\b/g,
|
|
'sh_keyword',
|
|
-1
|
|
],
|
|
[
|
|
/\b(?:int|byte|boolean|char|long|float|double|short|void)\b/g,
|
|
'sh_type',
|
|
-1
|
|
],
|
|
[
|
|
/~|!|%|\^|\*|\(|\)|-|\+|=|\[|\]|\\|:|;|,|\.|\/|\?|&|<|>|\|/g,
|
|
'sh_symbol',
|
|
-1
|
|
],
|
|
[
|
|
/\{|\}/g,
|
|
'sh_cbracket',
|
|
-1
|
|
],
|
|
[
|
|
/(?:[A-Za-z]|_)[A-Za-z0-9_]*(?=[ \t]*\()/g,
|
|
'sh_function',
|
|
-1
|
|
],
|
|
[
|
|
/([A-Za-z](?:[^`~!@#$%&*()_=+{}|;:",<.>\/?'\\[\]\^\-\s]|[_])*)((?:<.*>)?)(\s+(?=[*&]*[A-Za-z][^`~!@#$%&*()_=+{}|;:",<.>\/?'\\[\]\^\-\s]*\s*[`~!@#$%&*()_=+{}|;:",<.>\/?'\\[\]\^\-\[\]]+))/g,
|
|
['sh_usertype', 'sh_usertype', 'sh_normal'],
|
|
-1
|
|
]
|
|
],
|
|
[
|
|
[
|
|
/$/g,
|
|
null,
|
|
-2
|
|
],
|
|
[
|
|
/(?:<?)[A-Za-z0-9_\.\/\-_~]+@[A-Za-z0-9_\.\/\-_~]+(?:>?)|(?:<?)[A-Za-z0-9_]+:\/\/[A-Za-z0-9_\.\/\-_~]+(?:>?)/g,
|
|
'sh_url',
|
|
-1
|
|
],
|
|
[
|
|
/<\?xml/g,
|
|
'sh_preproc',
|
|
2,
|
|
1
|
|
],
|
|
[
|
|
/<!DOCTYPE/g,
|
|
'sh_preproc',
|
|
4,
|
|
1
|
|
],
|
|
[
|
|
/<!--/g,
|
|
'sh_comment',
|
|
5
|
|
],
|
|
[
|
|
/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)(?:\/)?>/g,
|
|
'sh_keyword',
|
|
-1
|
|
],
|
|
[
|
|
/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)/g,
|
|
'sh_keyword',
|
|
6,
|
|
1
|
|
],
|
|
[
|
|
/&(?:[A-Za-z0-9]+);/g,
|
|
'sh_preproc',
|
|
-1
|
|
],
|
|
[
|
|
/<(?:\/)?[A-Za-z][A-Za-z0-9]*(?:\/)?>/g,
|
|
'sh_keyword',
|
|
-1
|
|
],
|
|
[
|
|
/<(?:\/)?[A-Za-z][A-Za-z0-9]*/g,
|
|
'sh_keyword',
|
|
6,
|
|
1
|
|
],
|
|
[
|
|
/@[A-Za-z]+/g,
|
|
'sh_type',
|
|
-1
|
|
],
|
|
[
|
|
/(?:TODO|FIXME|BUG)(?:[:]?)/g,
|
|
'sh_todo',
|
|
-1
|
|
]
|
|
],
|
|
[
|
|
[
|
|
/\?>/g,
|
|
'sh_preproc',
|
|
-2
|
|
],
|
|
[
|
|
/([^=" \t>]+)([ \t]*)(=?)/g,
|
|
['sh_type', 'sh_normal', 'sh_symbol'],
|
|
-1
|
|
],
|
|
[
|
|
/"/g,
|
|
'sh_string',
|
|
3
|
|
]
|
|
],
|
|
[
|
|
[
|
|
/\\(?:\\|")/g,
|
|
null,
|
|
-1
|
|
],
|
|
[
|
|
/"/g,
|
|
'sh_string',
|
|
-2
|
|
]
|
|
],
|
|
[
|
|
[
|
|
/>/g,
|
|
'sh_preproc',
|
|
-2
|
|
],
|
|
[
|
|
/([^=" \t>]+)([ \t]*)(=?)/g,
|
|
['sh_type', 'sh_normal', 'sh_symbol'],
|
|
-1
|
|
],
|
|
[
|
|
/"/g,
|
|
'sh_string',
|
|
3
|
|
]
|
|
],
|
|
[
|
|
[
|
|
/-->/g,
|
|
'sh_comment',
|
|
-2
|
|
],
|
|
[
|
|
/<!--/g,
|
|
'sh_comment',
|
|
5
|
|
]
|
|
],
|
|
[
|
|
[
|
|
/(?:\/)?>/g,
|
|
'sh_keyword',
|
|
-2
|
|
],
|
|
[
|
|
/([^=" \t>]+)([ \t]*)(=?)/g,
|
|
['sh_type', 'sh_normal', 'sh_symbol'],
|
|
-1
|
|
],
|
|
[
|
|
/"/g,
|
|
'sh_string',
|
|
3
|
|
]
|
|
],
|
|
[
|
|
[
|
|
/$/g,
|
|
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>?)/g,
|
|
'sh_url',
|
|
-1
|
|
],
|
|
[
|
|
/(?:TODO|FIXME|BUG)(?:[:]?)/g,
|
|
'sh_todo',
|
|
-1
|
|
]
|
|
],
|
|
[
|
|
[
|
|
/"/g,
|
|
'sh_string',
|
|
-2
|
|
],
|
|
[
|
|
/\\./g,
|
|
'sh_specialchar',
|
|
-1
|
|
]
|
|
],
|
|
[
|
|
[
|
|
/'/g,
|
|
'sh_string',
|
|
-2
|
|
],
|
|
[
|
|
/\\./g,
|
|
'sh_specialchar',
|
|
-1
|
|
]
|
|
]
|
|
];
|