discourse/vendor/assets/javascripts/highlightjs/languages/bnf.min.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

1 line
300 B
JavaScript
Raw Normal View History

2020-05-29 00:15:13 +08:00
hljs.registerLanguage("bnf",function(){"use strict";return function(n){return{name:"BackusNaur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]}]}}}());