jboss-cli.js (1488B)
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 var PARAM = { 11 begin: /[\w-]+ *=/, returnBegin: true, 12 relevance: 0, 13 contains: [{className: 'attr', begin: /[\w-]+/}] 14 }; 15 var PARAMSBLOCK = { 16 className: 'params', 17 begin: /\(/, 18 end: /\)/, 19 contains: [PARAM], 20 relevance : 0 21 }; 22 var OPERATION = { 23 className: 'function', 24 begin: /:[\w\-.]+/, 25 relevance: 0 26 }; 27 var PATH = { 28 className: 'string', 29 begin: /\B(([\/.])[\w\-.\/=]+)+/, 30 }; 31 var COMMAND_PARAMS = { 32 className: 'params', 33 begin: /--[\w\-=\/]+/, 34 }; 35 return { 36 name: 'JBoss CLI', 37 aliases: ['wildfly-cli'], 38 keywords: { 39 $pattern: '[a-z\-]+', 40 keyword: 'alias batch cd clear command connect connection-factory connection-info data-source deploy ' + 41 'deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls ' + 42 'patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias ' + 43 'undeploy unset version xa-data-source', // module 44 literal: 'true false' 45 }, 46 contains: [ 47 hljs.HASH_COMMENT_MODE, 48 hljs.QUOTE_STRING_MODE, 49 COMMAND_PARAMS, 50 OPERATION, 51 PATH, 52 PARAMSBLOCK 53 ] 54 } 55 } 56 57 module.exports = jbossCli;