summaryrefslogtreecommitdiffstats
path: root/static/base/highlight/es/languages/abnf.min.js
diff options
context:
space:
mode:
authorAndreas Widen <andreas@harmonicflow.org>2023-11-25 17:21:37 +0100
committerAndreas Widen <andreas@harmonicflow.org>2023-11-25 17:21:37 +0100
commit1b2b7c3eb939724696894f31ff27db97b0cac84c (patch)
treeefb7b7746a628efb7bb99b2e44c9c2fbfd75b656 /static/base/highlight/es/languages/abnf.min.js
downloadhf-web-1b2b7c3eb939724696894f31ff27db97b0cac84c.tar.xz
hf-web-1b2b7c3eb939724696894f31ff27db97b0cac84c.zip
Initial commit.
Signed-off-by: Andreas Widen <andreas@harmonicflow.org>
Diffstat (limited to 'static/base/highlight/es/languages/abnf.min.js')
-rw-r--r--static/base/highlight/es/languages/abnf.min.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/static/base/highlight/es/languages/abnf.min.js b/static/base/highlight/es/languages/abnf.min.js
new file mode 100644
index 0000000..7a1e651
--- /dev/null
+++ b/static/base/highlight/es/languages/abnf.min.js
@@ -0,0 +1,12 @@
+/*! `abnf` grammar compiled for Highlight.js 11.3.1 */
+var hljsGrammar=(()=>{"use strict";return a=>{
+const e=a.regex,s=a.COMMENT(/;/,/$/);return{name:"Augmented Backus-Naur Form",
+illegal:/[!@#$^&',?+~`|:]/,
+keywords:["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],
+contains:[{scope:"operator",match:/=\/?/},{scope:"attribute",
+match:e.concat(/^[a-zA-Z][a-zA-Z0-9-]*/,/(?=\s*=)/)},s,{scope:"symbol",
+match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},{scope:"symbol",
+match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},{scope:"symbol",
+match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},{scope:"symbol",
+match:/%[si](?=".*")/},a.QUOTE_STRING_MODE,a.NUMBER_MODE]}}})()
+;export default hljsGrammar; \ No newline at end of file