mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-13 01:27:37 +01:00
1 line
8.3 KiB
Plaintext
1 line
8.3 KiB
Plaintext
{"version":3,"file":"4566.5eb1a1b10803fa99c22d.js","mappings":"sFA6SAA,EAAOC,QAnSP,SAAcC,GACZ,MAAMC,EAAQD,EAAKC,MACbC,EAAW,cACXC,EAAW,CACf,KACA,QACA,QACA,YACA,WACA,OACA,MACA,UACA,KACA,SACA,KACA,KACA,SACA,SACA,MACA,SAEIC,EAAW,CACf,OACA,QACA,QAEIC,EAAgB,CACpB,OACA,SAiBIC,EAAY,CAChB,IACA,IACA,KACA,IACA,SACA,OACA,KACA,KACA,KACA,KACA,KACA,IACA,IACA,KACA,KACA,IACA,SACA,KACA,KACA,IACA,OACA,KACA,MACA,KAEIC,EAAW,CACfC,UAAW,EACXC,MAAOR,EAAMS,OAAO,oCAAqCR,EAAU,eACnES,UAAW,kBAEPC,EAAsB,CAC1BH,MAAOR,EAAMS,OACXT,EAAMY,OACJZ,EAAMS,OAAO,oCAAqCR,GAClDD,EAAMY,UAAUP,IAElB,yBACFK,UAAW,iBACXG,OAAQ,CAAEC,SAAU,CAClB,CACEC,MAAO,KACPC,IAAK,KACLF,SAAU,CACR,CACEP,UAAW,EACXU,MAAO,SACPT,MAAOP,QAMXiB,EAAmB,CACvBC,SAAU,CACR,CAAEX,MAAO,CACP,WACAP,EACA,WACAA,IAEF,CAAEO,MAAO,CACP,WACAP,KAGJgB,MAAO,CACL,EAAG,cACH,EAAG,yBAELG,SAAUlB,GAGNmB,EAAW,CACfd,UAAW,EACXC,MAAOR,EAAMY,UAAUP,GACvBK,UAAW,YASPY,EAAW,CACfZ,UAAW,WACXK,MAAOf,EAAMS,OAAO,KAAMT,EAAMuB,UAAUtB,IAC1Ce,IAAKf,EACLuB,cAAc,EACdjB,UAAW,GAGPkB,EAAQ,CACZlB,UAAW,EACXC,MAAOR,EAAMS,OAAO,MAAOR,GAC3BgB,MAAO,YAIHS,EAAkB,CACtB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","sources":["webpack://telegram-t/./node_modules/highlight.js/lib/languages/wren.js"],"sourcesContent":["/*\nLanguage: Wren\nDescription: Think Smalltalk in a Lua-sized package with a dash of Erlang and wrapped up in a familiar, modern syntax.\nCategory: scripting\nAuthor: @joshgoebel\nMaintainer: @joshgoebel\nWebsite: https://wren.io/\n*/\n\n/** @type LanguageFn */\nfunction wren(hljs) {\n const regex = hljs.regex;\n const IDENT_RE = /[a-zA-Z]\\w*/;\n const KEYWORDS = [\n \"as\",\n \"break\",\n \"class\",\n \"construct\",\n \"continue\",\n \"else\",\n \"for\",\n \"foreign\",\n \"if\",\n \"import\",\n \"in\",\n \"is\",\n \"return\",\n \"static\",\n \"var\",\n \"while\"\n ];\n const LITERALS = [\n \"true\",\n \"false\",\n \"null\"\n ];\n const LANGUAGE_VARS = [\n \"this\",\n \"super\"\n ];\n const CORE_CLASSES = [\n \"Bool\",\n \"Class\",\n \"Fiber\",\n \"Fn\",\n \"List\",\n \"Map\",\n \"Null\",\n \"Num\",\n \"Object\",\n \"Range\",\n \"Sequence\",\n \"String\",\n \"System\"\n ];\n const OPERATORS = [\n \"-\",\n \"~\",\n /\\*/,\n \"%\",\n /\\.\\.\\./,\n /\\.\\./,\n /\\+/,\n \"<<\",\n \">>\",\n \">=\",\n \"<=\",\n \"<\",\n \">\",\n /\\^/,\n /!=/,\n /!/,\n /\\bis\\b/,\n \"==\",\n \"&&\",\n \"&\",\n /\\|\\|/,\n /\\|/,\n /\\?:/,\n \"=\"\n ];\n const FUNCTION = {\n relevance: 0,\n match: regex.concat(/\\b(?!(if|while|for|else|super)\\b)/, IDENT_RE, /(?=\\s*[({])/),\n className: \"title.function\"\n };\n const FUNCTION_DEFINITION = {\n match: regex.concat(\n regex.either(\n regex.concat(/\\b(?!(if|while|for|else|super)\\b)/, IDENT_RE),\n regex.either(...OPERATORS)\n ),\n /(?=\\s*\\([^)]+\\)\\s*\\{)/),\n className: \"title.function\",\n starts: { contains: [\n {\n begin: /\\(/,\n end: /\\)/,\n contains: [\n {\n relevance: 0,\n scope: \"params\",\n match: IDENT_RE\n }\n ]\n }\n ] }\n };\n const CLASS_DEFINITION = {\n variants: [\n { match: [\n /class\\s+/,\n IDENT_RE,\n /\\s+is\\s+/,\n IDENT_RE\n ] },\n { match: [\n /class\\s+/,\n IDENT_RE\n ] }\n ],\n scope: {\n 2: \"title.class\",\n 4: \"title.class.inherited\"\n },\n keywords: KEYWORDS\n };\n\n const OPERATOR = {\n relevance: 0,\n match: regex.either(...OPERATORS),\n className: \"operator\"\n };\n\n const TRIPLE_STRING = {\n className: \"string\",\n begin: /\"\"\"/,\n end: /\"\"\"/\n };\n\n const PROPERTY = {\n className: \"property\",\n begin: regex.concat(/\\./, regex.lookahead(IDENT_RE)),\n end: IDENT_RE,\n excludeBegin: true,\n relevance: 0\n };\n\n const FIELD = {\n relevance: 0,\n match: regex.concat(/\\b_/, IDENT_RE),\n scope: \"variable\"\n };\n\n // CamelCase\n const CLASS_REFERENCE = {\n relevance: 0,\n match: /\\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,\n scope: \"title.class\",\n keywords: { _: CORE_CLASSES }\n };\n\n // TODO: add custom number modes\n const NUMBER = hljs.C_NUMBER_MODE;\n\n const SETTER = {\n match: [\n IDENT_RE,\n /\\s*/,\n /=/,\n /\\s*/,\n /\\(/,\n IDENT_RE,\n /\\)\\s*\\{/\n ],\n scope: {\n 1: \"title.function\",\n 3: \"operator\",\n 6: \"params\"\n }\n };\n\n const COMMENT_DOCS = hljs.COMMENT(\n /\\/\\*\\*/,\n /\\*\\//,\n { contains: [\n {\n match: /@[a-z]+/,\n scope: \"doctag\"\n },\n \"self\"\n ] }\n );\n const SUBST = {\n scope: \"subst\",\n begin: /%\\(/,\n end: /\\)/,\n contains: [\n NUMBER,\n CLASS_REFERENCE,\n FUNCTION,\n FIELD,\n OPERATOR\n ]\n };\n const STRING = {\n scope: \"string\",\n begin: /\"/,\n end: /\"/,\n contains: [\n SUBST,\n {\n scope: \"char.escape\",\n variants: [\n { match: /\\\\\\\\|\\\\[\"0%abefnrtv]/ },\n { match: /\\\\x[0-9A-F]{2}/ },\n { match: /\\\\u[0-9A-F]{4}/ },\n { match: /\\\\U[0-9A-F]{8}/ }\n ]\n }\n ]\n };\n SUBST.contains.push(STRING);\n\n const ALL_KWS = [\n ...KEYWORDS,\n ...LANGUAGE_VARS,\n ...LITERALS\n ];\n const VARIABLE = {\n relevance: 0,\n match: regex.concat(\n \"\\\\b(?!\",\n ALL_KWS.join(\"|\"),\n \"\\\\b)\",\n /[a-zA-Z_]\\w*(?:[?!]|\\b)/\n ),\n className: \"variable\"\n };\n\n // TODO: reconsider this in the future\n const ATTRIBUTE = {\n // scope: \"meta\",\n scope: \"comment\",\n variants: [\n {\n begin: [\n /#!?/,\n /[A-Za-z_]+(?=\\()/\n ],\n beginScope: {\n // 2: \"attr\"\n },\n keywords: { literal: LITERALS },\n contains: [\n // NUMBER,\n // VARIABLE\n ],\n end: /\\)/\n },\n {\n begin: [\n /#!?/,\n /[A-Za-z_]+/\n ],\n beginScope: {\n // 2: \"attr\"\n },\n end: /$/\n }\n ]\n };\n\n return {\n name: \"Wren\",\n keywords: {\n keyword: KEYWORDS,\n \"variable.language\": LANGUAGE_VARS,\n literal: LITERALS\n },\n contains: [\n ATTRIBUTE,\n NUMBER,\n STRING,\n TRIPLE_STRING,\n COMMENT_DOCS,\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n CLASS_REFERENCE,\n CLASS_DEFINITION,\n SETTER,\n FUNCTION_DEFINITION,\n FUNCTION,\n OPERATOR,\n FIELD,\n PROPERTY,\n VARIABLE\n ]\n };\n}\n\nmodule.exports = wren;\n"],"names":["module","exports","hljs","regex","IDENT_RE","KEYWORDS","LITERALS","LANGUAGE_VARS","OPERATORS","FUNCTION","relevance","match","concat","className","FUNCTION_DEFINITION","either","starts","contains","begin","end","scope","CLASS_DEFINITION","variants","keywords","OPERATOR","PROPERTY","lookahead","excludeBegin","FIELD","CLASS_REFERENCE","_","NUMBER","C_NUMBER_MODE","SETTER","COMMENT_DOCS","COMMENT","SUBST","STRING","push","ALL_KWS","VARIABLE","join","name","keyword","literal","beginScope","C_LINE_COMMENT_MODE","C_BLOCK_COMMENT_MODE"],"sourceRoot":""} |