mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-02 09:37:47 +01:00
1 line
2.3 KiB
Plaintext
1 line
2.3 KiB
Plaintext
{"version":3,"file":"9623.a319f64448a91c662f4d.js","mappings":"sFAiFAA,EAAOC,QAzEP,SAAcC,GACZ,MAAMC,EAAQD,EAAKC,MAsBbC,EAAUF,EAAKE,QAAQ,IAAK,KAgClC,MAAO,CACLC,KAAM,6BACNC,QAAS,mBACTC,SAtDe,CACf,QACA,MACA,OACA,KACA,OACA,MACA,QACA,SACA,SACA,OACA,KACA,OACA,QACA,KACA,QACA,OAuCAC,SAAU,CATO,CACjBC,MAAO,WACPC,MAAO,QAPgB,CACvBD,MAAO,YACPC,MAAOP,EAAMQ,OA7CD,yBA6Ce,aAezBP,EArCoB,CACtBK,MAAO,SACPC,MAAO,kCAGgB,CACvBD,MAAO,SACPC,MAAO,kCAGoB,CAC3BD,MAAO,SACPC,MAAO,2CAGgB,CACvBD,MAAO,SACPC,MAAO,iBAyBLR,EAAKU,kBACLV,EAAKW","sources":["webpack://telegram-t/./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\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":["module","exports","hljs","regex","COMMENT","name","illegal","keywords","contains","scope","match","concat","QUOTE_STRING_MODE","NUMBER_MODE"],"sourceRoot":""} |