aboutsummaryrefslogtreecommitdiff
path: root/node_modules/highlight.js/lib/languages/abnf.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-03-27 21:01:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-03-27 21:01:33 +0100
commitcc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch)
tree92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/highlight.js/lib/languages/abnf.js
parent3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff)
remove node_modules
Diffstat (limited to 'node_modules/highlight.js/lib/languages/abnf.js')
-rw-r--r--node_modules/highlight.js/lib/languages/abnf.js70
1 files changed, 0 insertions, 70 deletions
diff --git a/node_modules/highlight.js/lib/languages/abnf.js b/node_modules/highlight.js/lib/languages/abnf.js
deleted file mode 100644
index 9c5f7b7a6..000000000
--- a/node_modules/highlight.js/lib/languages/abnf.js
+++ /dev/null
@@ -1,70 +0,0 @@
-module.exports = function(hljs) {
- var regexes = {
- ruleDeclaration: "^[a-zA-Z][a-zA-Z0-9-]*",
- unexpectedChars: "[!@#$^&',?+~`|:]"
- };
-
- var keywords = [
- "ALPHA",
- "BIT",
- "CHAR",
- "CR",
- "CRLF",
- "CTL",
- "DIGIT",
- "DQUOTE",
- "HEXDIG",
- "HTAB",
- "LF",
- "LWSP",
- "OCTET",
- "SP",
- "VCHAR",
- "WSP"
- ];
-
- var commentMode = hljs.COMMENT(";", "$");
-
- var terminalBinaryMode = {
- className: "symbol",
- begin: /%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/
- };
-
- var terminalDecimalMode = {
- className: "symbol",
- begin: /%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/
- };
-
- var terminalHexadecimalMode = {
- className: "symbol",
- begin: /%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/,
- };
-
- var caseSensitivityIndicatorMode = {
- className: "symbol",
- begin: /%[si]/
- };
-
- var ruleDeclarationMode = {
- begin: regexes.ruleDeclaration + '\\s*=',
- returnBegin: true,
- end: /=/,
- relevance: 0,
- contains: [{className: "attribute", begin: regexes.ruleDeclaration}]
- };
-
- return {
- illegal: regexes.unexpectedChars,
- keywords: keywords.join(" "),
- contains: [
- ruleDeclarationMode,
- commentMode,
- terminalBinaryMode,
- terminalDecimalMode,
- terminalHexadecimalMode,
- caseSensitivityIndicatorMode,
- hljs.QUOTE_STRING_MODE,
- hljs.NUMBER_MODE
- ]
- };
-}; \ No newline at end of file