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