Skip to content

Commit

Permalink
Fix keywords not being highlighted when not immediately preceded by a…
Browse files Browse the repository at this point in the history
… word boundary.
  • Loading branch information
amckibben committed Jul 17, 2016
1 parent 04d4cf3 commit 7077381
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/languages/abnf.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ function(hljs) {
"WSP"
];

var keywordMode = {
beginKeywords: keywords.join(" ")
};

var commentMode = hljs.COMMENT(";", "$");

var terminalBinaryMode = {
Expand Down Expand Up @@ -64,10 +60,10 @@ function(hljs) {

return {
illegal: regexes.unexpectedChars,
keywords: keywords.join(" "),
contains: [
ruleDeclarationMode,
commentMode,
keywordMode,
terminalBinaryMode,
terminalDecimalMode,
terminalHexadecimalMode,
Expand Down

0 comments on commit 7077381

Please sign in to comment.