Skip to content

Commit

Permalink
Tweaks to jboss-cli
Browse files Browse the repository at this point in the history
- "attribute" redefined to not include the final `=` and renamed
  to "attr" for consistency
- "symbol" renamed to "string" (seems a better fit)
  • Loading branch information
isagalaev committed Apr 10, 2017
1 parent 0cc54de commit b21ab7d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/languages/jboss-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@

function (hljs) {
var PARAM = {
className: "attribute",
begin: /[\w-]+ *=/,
excludeEnd: true,
relevance: -1
begin: /[\w-]+ *=/, returnBegin: true,
relevance: 0,
contains: [{className: 'attr', begin: /[\w-]+/}]
};
var PARAMSBLOCK = {
className: 'params',
Expand All @@ -25,7 +24,7 @@ function (hljs) {
relevance: 0
};
var PATH = {
className: 'symbol',
className: 'string',
begin: /\B(([\/.])[\w\-.\/=]+)+/,
};
var COMMAND_PARAMS = {
Expand Down

0 comments on commit b21ab7d

Please sign in to comment.