зеркало из https://github.com/nextcloud/text.git
1 строка
2.5 KiB
Plaintext
1 строка
2.5 KiB
Plaintext
{"version":3,"file":"abnf-BccXShOV.chunk.mjs","sources":["../node_modules/highlight.js/lib/languages/abnf.js"],"sourcesContent":["/*\nLanguage: Augmented Backus-Naur Form\nAuthor: Alex McKibben <alex@nullscope.net>\nWebsite: https://tools.ietf.org/html/rfc5234\nCategory: syntax\nAudit: 2020\n*/\n\n/** @type LanguageFn */\nfunction abnf(hljs) {\n const regex = hljs.regex;\n const IDENT = /^[a-zA-Z][a-zA-Z0-9-]*/;\n\n const KEYWORDS = [\n \"ALPHA\",\n \"BIT\",\n \"CHAR\",\n \"CR\",\n \"CRLF\",\n \"CTL\",\n \"DIGIT\",\n \"DQUOTE\",\n \"HEXDIG\",\n \"HTAB\",\n \"LF\",\n \"LWSP\",\n \"OCTET\",\n \"SP\",\n \"VCHAR\",\n \"WSP\"\n ];\n\n const COMMENT = hljs.COMMENT(/;/, /$/);\n\n const TERMINAL_BINARY = {\n scope: \"symbol\",\n match: /%b[0-1]+(-[0-1]+|(\\.[0-1]+)+)?/\n };\n\n const TERMINAL_DECIMAL = {\n scope: \"symbol\",\n match: /%d[0-9]+(-[0-9]+|(\\.[0-9]+)+)?/\n };\n\n const TERMINAL_HEXADECIMAL = {\n scope: \"symbol\",\n match: /%x[0-9A-F]+(-[0-9A-F]+|(\\.[0-9A-F]+)+)?/\n };\n\n const CASE_SENSITIVITY = {\n scope: \"symbol\",\n match: /%[si](?=\".*\")/\n };\n\n const RULE_DECLARATION = {\n scope: \"attribute\",\n match: regex.concat(IDENT, /(?=\\s*=)/)\n };\n\n const ASSIGNMENT = {\n scope: \"operator\",\n match: /=\\/?/\n };\n\n return {\n name: 'Augmented Backus-Naur Form',\n illegal: /[!@#$^&',?+~`|:]/,\n keywords: KEYWORDS,\n contains: [\n ASSIGNMENT,\n RULE_DECLARATION,\n COMMENT,\n TERMINAL_BINARY,\n TERMINAL_DECIMAL,\n TERMINAL_HEXADECIMAL,\n CASE_SENSITIVITY,\n hljs.QUOTE_STRING_MODE,\n hljs.NUMBER_MODE\n ]\n };\n}\n\nmodule.exports = abnf;\n"],"names":["abnf","hljs","regex","IDENT","KEYWORDS","COMMENT","TERMINAL_BINARY","TERMINAL_DECIMAL","TERMINAL_HEXADECIMAL","CASE_SENSITIVITY","RULE_DECLARATION","abnf_1"],"mappings":";4YASA,SAASA,EAAKC,EAAM,CAClB,MAAMC,EAAQD,EAAK,MACbE,EAAQ,yBAERC,EAAW,CACf,QACA,MACA,OACA,KACA,OACA,MACA,QACA,SACA,SACA,OACA,KACA,OACA,QACA,KACA,QACA,KACJ,EAEQC,EAAUJ,EAAK,QAAQ,IAAK,GAAG,EAE/BK,EAAkB,CACtB,MAAO,SACP,MAAO,gCACX,EAEQC,EAAmB,CACvB,MAAO,SACP,MAAO,gCACX,EAEQC,EAAuB,CAC3B,MAAO,SACP,MAAO,yCACX,EAEQC,EAAmB,CACvB,MAAO,SACP,MAAO,eACX,EAEQC,EAAmB,CACvB,MAAO,YACP,MAAOR,EAAM,OAAOC,EAAO,UAAU,CACzC,EAOE,MAAO,CACL,KAAM,6BACN,QAAS,mBACT,SAAUC,EACV,SAAU,CATO,CACjB,MAAO,WACP,MAAO,MACX,EAQMM,EACAL,EACAC,EACAC,EACAC,EACAC,EACAR,EAAK,kBACLA,EAAK,WACN,CACL,CACA,CAEA,IAAAU,EAAiBX","x_google_ignoreList":[0]} |