Skip to content

Commit

Permalink
(chore) simplify BNF grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Feb 28, 2020
1 parent ae18d9c commit ec0ec9b
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/languages/bnf.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,17 @@ export default function(hljs){
// Specific
{
begin: /::=/,
starts: {
end: /$/,
contains: [
{
begin: /</, end: />/
},
// Common
hljs.C_LINE_COMMENT_MODE,
hljs.C_BLOCK_COMMENT_MODE,
hljs.APOS_STRING_MODE,
hljs.QUOTE_STRING_MODE
]
}
end: /$/,
contains: [
{
begin: /</, end: />/
},
// Common
hljs.C_LINE_COMMENT_MODE,
hljs.C_BLOCK_COMMENT_MODE,
hljs.APOS_STRING_MODE,
hljs.QUOTE_STRING_MODE
]
}
]
};
Expand Down

0 comments on commit ec0ec9b

Please sign in to comment.