From 7e49db5ddefe8c515b5f3931a5c701efaac33d91 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Fri, 16 Dec 2022 17:45:03 -0600 Subject: change structure for new pyssg version --- live/static/hl/languages/abnf.min.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 live/static/hl/languages/abnf.min.js (limited to 'live/static/hl/languages/abnf.min.js') diff --git a/live/static/hl/languages/abnf.min.js b/live/static/hl/languages/abnf.min.js new file mode 100644 index 0000000..94c3be1 --- /dev/null +++ b/live/static/hl/languages/abnf.min.js @@ -0,0 +1,9 @@ +hljs.registerLanguage("abnf",(()=>{"use strict";return s=>({ +name:"Augmented Backus-Naur Form",illegal:"[!@#$^&',?+~`|:]", +keywords:"ALPHA BIT CHAR CR CRLF CTL DIGIT DQUOTE HEXDIG HTAB LF LWSP OCTET SP VCHAR WSP", +contains:[{className:"attribute",begin:"^[a-zA-Z][a-zA-Z0-9-]*(?=\\s*=)" +},s.COMMENT(";","$"),{className:"symbol", +begin:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/},{className:"symbol", +begin:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/},{className:"symbol", +begin:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/},{className:"symbol", +begin:/%[si]/},s.QUOTE_STRING_MODE,s.NUMBER_MODE]})})()); \ No newline at end of file -- cgit v1.2.3-54-g00ecf