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:
1.5 KB
|
Line | |
---|
1 | /*
|
---|
2 | Language: JBoss CLI
|
---|
3 | Author: Raphaël Parrëe <rparree@edc4it.com>
|
---|
4 | Description: language definition jboss cli
|
---|
5 | Website: https://docs.jboss.org/author/display/WFLY/Command+Line+Interface
|
---|
6 | Category: config
|
---|
7 | */
|
---|
8 |
|
---|
9 | function jbossCli(hljs) {
|
---|
10 | const PARAM = {
|
---|
11 | begin: /[\w-]+ *=/,
|
---|
12 | returnBegin: true,
|
---|
13 | relevance: 0,
|
---|
14 | contains: [
|
---|
15 | {
|
---|
16 | className: 'attr',
|
---|
17 | begin: /[\w-]+/
|
---|
18 | }
|
---|
19 | ]
|
---|
20 | };
|
---|
21 | const PARAMSBLOCK = {
|
---|
22 | className: 'params',
|
---|
23 | begin: /\(/,
|
---|
24 | end: /\)/,
|
---|
25 | contains: [PARAM],
|
---|
26 | relevance: 0
|
---|
27 | };
|
---|
28 | const OPERATION = {
|
---|
29 | className: 'function',
|
---|
30 | begin: /:[\w\-.]+/,
|
---|
31 | relevance: 0
|
---|
32 | };
|
---|
33 | const PATH = {
|
---|
34 | className: 'string',
|
---|
35 | begin: /\B([\/.])[\w\-.\/=]+/
|
---|
36 | };
|
---|
37 | const COMMAND_PARAMS = {
|
---|
38 | className: 'params',
|
---|
39 | begin: /--[\w\-=\/]+/
|
---|
40 | };
|
---|
41 | return {
|
---|
42 | name: 'JBoss CLI',
|
---|
43 | aliases: ['wildfly-cli'],
|
---|
44 | keywords: {
|
---|
45 | $pattern: '[a-z\-]+',
|
---|
46 | keyword: 'alias batch cd clear command connect connection-factory connection-info data-source deploy ' +
|
---|
47 | 'deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls ' +
|
---|
48 | 'patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias ' +
|
---|
49 | 'undeploy unset version xa-data-source', // module
|
---|
50 | literal: 'true false'
|
---|
51 | },
|
---|
52 | contains: [
|
---|
53 | hljs.HASH_COMMENT_MODE,
|
---|
54 | hljs.QUOTE_STRING_MODE,
|
---|
55 | COMMAND_PARAMS,
|
---|
56 | OPERATION,
|
---|
57 | PATH,
|
---|
58 | PARAMSBLOCK
|
---|
59 | ]
|
---|
60 | };
|
---|
61 | }
|
---|
62 |
|
---|
63 | module.exports = jbossCli;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.