]> luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/jboss-cli.js
Initial commit.
[flow-web.git] / static / highlight / es / languages / jboss-cli.js
1 /*! `jboss-cli` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar = (function () {
3 'use strict';
4
5 /*
6 Language: JBoss CLI
7 Author: Raphaël Parrëe <rparree@edc4it.com>
8 Description: language definition jboss cli
9 Website: https://docs.jboss.org/author/display/WFLY/Command+Line+Interface
10 Category: config
11 */
12
13 function jbossCli(hljs) {
14 const PARAM = {
15 begin: /[\w-]+ *=/,
16 returnBegin: true,
17 relevance: 0,
18 contains: [
19 {
20 className: 'attr',
21 begin: /[\w-]+/
22 }
23 ]
24 };
25 const PARAMSBLOCK = {
26 className: 'params',
27 begin: /\(/,
28 end: /\)/,
29 contains: [ PARAM ],
30 relevance: 0
31 };
32 const OPERATION = {
33 className: 'function',
34 begin: /:[\w\-.]+/,
35 relevance: 0
36 };
37 const PATH = {
38 className: 'string',
39 begin: /\B([\/.])[\w\-.\/=]+/
40 };
41 const COMMAND_PARAMS = {
42 className: 'params',
43 begin: /--[\w\-=\/]+/
44 };
45 return {
46 name: 'JBoss CLI',
47 aliases: [ 'wildfly-cli' ],
48 keywords: {
49 $pattern: '[a-z\-]+',
50 keyword: 'alias batch cd clear command connect connection-factory connection-info data-source deploy '
51 + 'deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls '
52 + 'patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias '
53 + 'undeploy unset version xa-data-source', // module
54 literal: 'true false'
55 },
56 contains: [
57 hljs.HASH_COMMENT_MODE,
58 hljs.QUOTE_STRING_MODE,
59 COMMAND_PARAMS,
60 OPERATION,
61 PATH,
62 PARAMSBLOCK
63 ]
64 };
65 }
66
67 return jbossCli;
68
69 })();
70 ;
71 export default hljsGrammar;