%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/highlight/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/highlight/rust-js-js.js.map |
{"version":3,"file":"highlight/rust-js-js.js?v=afffdcb434d8a78ddc30","mappings":"kIAgTAA,EAAOC,QAvSP,SAAcC,GACZ,MAAMC,EAAQD,EAAKC,MACbC,EAAkB,CACtBC,UAAW,wBACXC,UAAW,EACXC,MAAOJ,EAAMK,OACX,KACA,oCACAN,EAAKO,SACLN,EAAMO,UAAU,WAEdC,EAAgB,wCA8DhBC,EAAW,CAEf,QAEA,OACA,OACA,QACA,OACA,OACA,KACA,QACA,SACA,UACA,QACA,QACA,YACA,aACA,KACA,MACA,QACA,QACA,OACA,OACA,UACA,WACA,SACA,eACA,sBACA,oBACA,iBACA,WAEA,UACA,aACA,YACA,SACA,OACA,OACA,UACA,iBACA,gBACA,mBACA,OACA,YACA,SACA,QACA,UACA,eACA,iBACA,eACA,QACA,kBACA,eACA,cACA,SACA,WACA,UACA,aACA,OACA,iBACA,eACA,OACA,SACA,WACA,eACA,aACA,oBAEIC,EAAQ,CACZ,KACA,MACA,MACA,MACA,OACA,QACA,KACA,MACA,MACA,MACA,OACA,QACA,MACA,MACA,MACA,OACA,OACA,MACA,SACA,SACA,SACA,OAEF,MAAO,CACLC,KAAM,OACNC,QAAS,CAAE,MACXC,SAAU,CACRC,SAAUf,EAAKO,SAAW,KAC1BS,KAAML,EACNM,QA/Ja,CACf,WACA,KACA,QACA,QACA,SACA,MACA,QACA,QACA,WACA,QACA,KACA,MACA,OACA,OACA,SACA,QACA,QACA,KACA,MACA,KACA,OACA,KACA,MACA,OACA,QACA,QACA,MACA,OACA,MACA,WACA,OACA,MACA,MACA,SACA,OACA,OACA,SACA,SACA,QACA,QACA,OACA,MACA,OACA,SACA,SACA,UACA,MACA,UACA,QACA,QACA,SA6GEC,QA3Ga,CACf,OACA,QACA,OACA,OACA,KACA,OAsGEC,SAAUT,GAEZU,QAAS,KACTC,SAAU,CACRrB,EAAKsB,oBACLtB,EAAKuB,QAAQ,OAAQ,OAAQ,CAAEF,SAAU,CAAE,UAC3CrB,EAAKwB,QAAQxB,EAAKyB,kBAAmB,CACnCpB,MAAO,MACPe,QAAS,OAEX,CACEjB,UAAW,SACXuB,SAAU,CACR,CAAErB,MAAO,4BACT,CAAEA,MAAO,qCAGb,CACEF,UAAW,SACXE,MAAO,2BAET,CACEF,UAAW,SACXuB,SAAU,CACR,CAAErB,MAAO,gBAAkBI,GAC3B,CAAEJ,MAAO,iBAAmBI,GAC5B,CAAEJ,MAAO,uBAAyBI,GAClC,CAAEJ,MAAO,kDACEI,IAEbL,UAAW,GAEb,CACEC,MAAO,CACL,KACA,MACAL,EAAK2B,qBAEPxB,UAAW,CACT,EAAG,UACH,EAAG,mBAGP,CACEA,UAAW,OACXE,MAAO,SACPuB,IAAK,MACLP,SAAU,CACR,CACElB,UAAW,SACXE,MAAO,IACPuB,IAAK,OAIX,CACEvB,MAAO,CACL,MACA,MACA,cACAL,EAAK2B,qBAEPxB,UAAW,CACT,EAAG,UACH,EAAG,UACH,EAAG,aAIP,CACEE,MAAO,CACL,MACA,MACAL,EAAK2B,oBACL,MACA,MAEFxB,UAAW,CACT,EAAG,UACH,EAAG,WACH,EAAG,YAGP,CACEE,MAAO,CACL,OACA,MACAL,EAAK2B,qBAEPxB,UAAW,CACT,EAAG,UACH,EAAG,gBAGP,CACEE,MAAO,CACL,uCACA,MACAL,EAAK2B,qBAEPxB,UAAW,CACT,EAAG,UACH,EAAG,gBAGP,CACEE,MAAOL,EAAKO,SAAW,KACvBO,SAAU,CACRG,QAAS,OACTE,SAAUT,EACVM,KAAML,IAGV,CACER,UAAW,cACXE,MAAO,MAETH,GAGN,C,mBC9SA,SAAS2B,IACAA,EAAYC,SACfD,EAAYC,QAAS,EACrBC,QAAQC,IACN,iKAGN,CACAH,GACE/B,EAAOC,QAAU,EAAjB,K","sources":["webpack:///text/node_modules/highlight.js/lib/languages/rust.js","webpack:///text/node_modules/highlight.js/lib/languages/rust.js.js"],"sourcesContent":["/*\nLanguage: Rust\nAuthor: Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com>\nContributors: Roman Shmatov <romanshmatov@gmail.com>, Kasper Andersen <kma_untrusted@protonmail.com>\nWebsite: https://www.rust-lang.org\nCategory: common, system\n*/\n\n/** @type LanguageFn */\nfunction rust(hljs) {\n const regex = hljs.regex;\n const FUNCTION_INVOKE = {\n className: \"title.function.invoke\",\n relevance: 0,\n begin: regex.concat(\n /\\b/,\n /(?!let|for|while|if|else|match\\b)/,\n hljs.IDENT_RE,\n regex.lookahead(/\\s*\\(/))\n };\n const NUMBER_SUFFIX = '([ui](8|16|32|64|128|size)|f(32|64))\\?';\n const KEYWORDS = [\n \"abstract\",\n \"as\",\n \"async\",\n \"await\",\n \"become\",\n \"box\",\n \"break\",\n \"const\",\n \"continue\",\n \"crate\",\n \"do\",\n \"dyn\",\n \"else\",\n \"enum\",\n \"extern\",\n \"false\",\n \"final\",\n \"fn\",\n \"for\",\n \"if\",\n \"impl\",\n \"in\",\n \"let\",\n \"loop\",\n \"macro\",\n \"match\",\n \"mod\",\n \"move\",\n \"mut\",\n \"override\",\n \"priv\",\n \"pub\",\n \"ref\",\n \"return\",\n \"self\",\n \"Self\",\n \"static\",\n \"struct\",\n \"super\",\n \"trait\",\n \"true\",\n \"try\",\n \"type\",\n \"typeof\",\n \"unsafe\",\n \"unsized\",\n \"use\",\n \"virtual\",\n \"where\",\n \"while\",\n \"yield\"\n ];\n const LITERALS = [\n \"true\",\n \"false\",\n \"Some\",\n \"None\",\n \"Ok\",\n \"Err\"\n ];\n const BUILTINS = [\n // functions\n 'drop ',\n // traits\n \"Copy\",\n \"Send\",\n \"Sized\",\n \"Sync\",\n \"Drop\",\n \"Fn\",\n \"FnMut\",\n \"FnOnce\",\n \"ToOwned\",\n \"Clone\",\n \"Debug\",\n \"PartialEq\",\n \"PartialOrd\",\n \"Eq\",\n \"Ord\",\n \"AsRef\",\n \"AsMut\",\n \"Into\",\n \"From\",\n \"Default\",\n \"Iterator\",\n \"Extend\",\n \"IntoIterator\",\n \"DoubleEndedIterator\",\n \"ExactSizeIterator\",\n \"SliceConcatExt\",\n \"ToString\",\n // macros\n \"assert!\",\n \"assert_eq!\",\n \"bitflags!\",\n \"bytes!\",\n \"cfg!\",\n \"col!\",\n \"concat!\",\n \"concat_idents!\",\n \"debug_assert!\",\n \"debug_assert_eq!\",\n \"env!\",\n \"eprintln!\",\n \"panic!\",\n \"file!\",\n \"format!\",\n \"format_args!\",\n \"include_bytes!\",\n \"include_str!\",\n \"line!\",\n \"local_data_key!\",\n \"module_path!\",\n \"option_env!\",\n \"print!\",\n \"println!\",\n \"select!\",\n \"stringify!\",\n \"try!\",\n \"unimplemented!\",\n \"unreachable!\",\n \"vec!\",\n \"write!\",\n \"writeln!\",\n \"macro_rules!\",\n \"assert_ne!\",\n \"debug_assert_ne!\"\n ];\n const TYPES = [\n \"i8\",\n \"i16\",\n \"i32\",\n \"i64\",\n \"i128\",\n \"isize\",\n \"u8\",\n \"u16\",\n \"u32\",\n \"u64\",\n \"u128\",\n \"usize\",\n \"f32\",\n \"f64\",\n \"str\",\n \"char\",\n \"bool\",\n \"Box\",\n \"Option\",\n \"Result\",\n \"String\",\n \"Vec\"\n ];\n return {\n name: 'Rust',\n aliases: [ 'rs' ],\n keywords: {\n $pattern: hljs.IDENT_RE + '!?',\n type: TYPES,\n keyword: KEYWORDS,\n literal: LITERALS,\n built_in: BUILTINS\n },\n illegal: '</',\n contains: [\n hljs.C_LINE_COMMENT_MODE,\n hljs.COMMENT('/\\\\*', '\\\\*/', { contains: [ 'self' ] }),\n hljs.inherit(hljs.QUOTE_STRING_MODE, {\n begin: /b?\"/,\n illegal: null\n }),\n {\n className: 'string',\n variants: [\n { begin: /b?r(#*)\"(.|\\n)*?\"\\1(?!#)/ },\n { begin: /b?'\\\\?(x\\w{2}|u\\w{4}|U\\w{8}|.)'/ }\n ]\n },\n {\n className: 'symbol',\n begin: /'[a-zA-Z_][a-zA-Z0-9_]*/\n },\n {\n className: 'number',\n variants: [\n { begin: '\\\\b0b([01_]+)' + NUMBER_SUFFIX },\n { begin: '\\\\b0o([0-7_]+)' + NUMBER_SUFFIX },\n { begin: '\\\\b0x([A-Fa-f0-9_]+)' + NUMBER_SUFFIX },\n { begin: '\\\\b(\\\\d[\\\\d_]*(\\\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)'\n + NUMBER_SUFFIX }\n ],\n relevance: 0\n },\n {\n begin: [\n /fn/,\n /\\s+/,\n hljs.UNDERSCORE_IDENT_RE\n ],\n className: {\n 1: \"keyword\",\n 3: \"title.function\"\n }\n },\n {\n className: 'meta',\n begin: '#!?\\\\[',\n end: '\\\\]',\n contains: [\n {\n className: 'string',\n begin: /\"/,\n end: /\"/\n }\n ]\n },\n {\n begin: [\n /let/,\n /\\s+/,\n /(?:mut\\s+)?/,\n hljs.UNDERSCORE_IDENT_RE\n ],\n className: {\n 1: \"keyword\",\n 3: \"keyword\",\n 4: \"variable\"\n }\n },\n // must come before impl/for rule later\n {\n begin: [\n /for/,\n /\\s+/,\n hljs.UNDERSCORE_IDENT_RE,\n /\\s+/,\n /in/\n ],\n className: {\n 1: \"keyword\",\n 3: \"variable\",\n 5: \"keyword\"\n }\n },\n {\n begin: [\n /type/,\n /\\s+/,\n hljs.UNDERSCORE_IDENT_RE\n ],\n className: {\n 1: \"keyword\",\n 3: \"title.class\"\n }\n },\n {\n begin: [\n /(?:trait|enum|struct|union|impl|for)/,\n /\\s+/,\n hljs.UNDERSCORE_IDENT_RE\n ],\n className: {\n 1: \"keyword\",\n 3: \"title.class\"\n }\n },\n {\n begin: hljs.IDENT_RE + '::',\n keywords: {\n keyword: \"Self\",\n built_in: BUILTINS,\n type: TYPES\n }\n },\n {\n className: \"punctuation\",\n begin: '->'\n },\n FUNCTION_INVOKE\n ]\n };\n}\n\nmodule.exports = rust;\n","function emitWarning() {\n if (!emitWarning.warned) {\n emitWarning.warned = true;\n console.log(\n 'Deprecation (warning): Using file extension in specifier is deprecated, use \"highlight.js/lib/languages/rust\" instead of \"highlight.js/lib/languages/rust.js\"'\n );\n }\n }\n emitWarning();\n module.exports = require('./rust.js');"],"names":["module","exports","hljs","regex","FUNCTION_INVOKE","className","relevance","begin","concat","IDENT_RE","lookahead","NUMBER_SUFFIX","BUILTINS","TYPES","name","aliases","keywords","$pattern","type","keyword","literal","built_in","illegal","contains","C_LINE_COMMENT_MODE","COMMENT","inherit","QUOTE_STRING_MODE","variants","UNDERSCORE_IDENT_RE","end","emitWarning","warned","console","log"],"sourceRoot":""}