Skip to content

Commit

Permalink
Merge branch 'jboss-cli'
Browse files Browse the repository at this point in the history
  • Loading branch information
isagalaev committed Apr 10, 2017
2 parents 8a70d75 + b21ab7d commit d3219c5
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS.en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,4 @@ Contributors:
- Andres Täht <[email protected]>
- Rene Saarsoo <[email protected]>
- Jordi Petit <[email protected]>
- Raphaël Parrëe <[email protected]>
1 change: 1 addition & 0 deletions AUTHORS.ru.txt
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,4 @@ URL: https://highlightjs.org/
- Андрес Тахт <[email protected]>
- Рене Саарсо <[email protected]>
- Джорди Петит <[email protected]>
- Рафаэль Паре <[email protected]>
53 changes: 53 additions & 0 deletions src/languages/jboss-cli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
Language: jboss-cli
Author: Raphaël Parrëe <[email protected]>
Description: language definition jboss cli
Category: config
*/

function (hljs) {
var PARAM = {
begin: /[\w-]+ *=/, returnBegin: true,
relevance: 0,
contains: [{className: 'attr', begin: /[\w-]+/}]
};
var PARAMSBLOCK = {
className: 'params',
begin: /\(/,
end: /\)/,
contains: [PARAM],
relevance : 0
};
var OPERATION = {
className: 'function',
begin: /:[\w\-.]+/,
relevance: 0
};
var PATH = {
className: 'string',
begin: /\B(([\/.])[\w\-.\/=]+)+/,
};
var COMMAND_PARAMS = {
className: 'params',
begin: /--[\w\-=\/]+/,
};
return {
aliases: ['wildfly-cli'],
lexemes: '[a-z\-]+',
keywords: {
keyword: 'alias batch cd clear command connect connection-factory connection-info data-source deploy ' +
'deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls ' +
'patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias ' +
'undeploy unset version xa-data-source', // module
literal: 'true false'
},
contains: [
hljs.HASH_COMMENT_MODE,
hljs.QUOTE_STRING_MODE,
COMMAND_PARAMS,
OPERATION,
PATH,
PARAMSBLOCK
]
}
}
24 changes: 24 additions & 0 deletions test/detect/jboss-cli/default.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
jms-queue add --queue-address=myQueue --entries=queue/myQueue

deploy /path/to/file.war

/system-property=prop1:add(value=value1)



/extension=org.jboss.as.modcluster:add

./foo=bar:remove

/subsystem=security/security-domain=demo-realm/authentication=classic:add

/subsystem=security/security-domain=demo-realm/authentication=classic/login-module=UsersRoles:add( \
code=UsersRoles, \
flag=required, \
module-options= { \
usersProperties=auth/demo-users.properties, \
rolesProperties =auth/demo-roles.properties, \
hashAlgorithm= MD5, \
hashCharset="UTF-8" \
} \
)

0 comments on commit d3219c5

Please sign in to comment.