%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/crystal-Bi9UZteH.chunk.mjs.map |
{"version":3,"file":"crystal-Bi9UZteH.chunk.mjs","sources":["../node_modules/highlight.js/lib/languages/crystal.js"],"sourcesContent":["/*\nLanguage: Crystal\nAuthor: TSUYUSATO Kitsune <make.just.on@gmail.com>\nWebsite: https://crystal-lang.org\nCategory: system\n*/\n\n/** @type LanguageFn */\nfunction crystal(hljs) {\n const INT_SUFFIX = '(_?[ui](8|16|32|64|128))?';\n const FLOAT_SUFFIX = '(_?f(32|64))?';\n const CRYSTAL_IDENT_RE = '[a-zA-Z_]\\\\w*[!?=]?';\n const CRYSTAL_METHOD_RE = '[a-zA-Z_]\\\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\\\*\\\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\\\*\\\\*|\\\\[\\\\][=?]?';\n const CRYSTAL_PATH_RE = '[A-Za-z_]\\\\w*(::\\\\w+)*(\\\\?|!)?';\n const CRYSTAL_KEYWORDS = {\n $pattern: CRYSTAL_IDENT_RE,\n keyword:\n 'abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if '\n + 'include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? '\n + 'return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield '\n + '__DIR__ __END_LINE__ __FILE__ __LINE__',\n literal: 'false nil true'\n };\n const SUBST = {\n className: 'subst',\n begin: /#\\{/,\n end: /\\}/,\n keywords: CRYSTAL_KEYWORDS\n };\n // borrowed from Ruby\n const VARIABLE = {\n // negative-look forward attemps to prevent false matches like:\n // @ident@ or $ident$ that might indicate this is not ruby at all\n className: \"variable\",\n begin: '(\\\\$\\\\W)|((\\\\$|@@?)(\\\\w+))(?=[^@$?])' + `(?![A-Za-z])(?![@$?'])`\n };\n const EXPANSION = {\n className: 'template-variable',\n variants: [\n {\n begin: '\\\\{\\\\{',\n end: '\\\\}\\\\}'\n },\n {\n begin: '\\\\{%',\n end: '%\\\\}'\n }\n ],\n keywords: CRYSTAL_KEYWORDS\n };\n\n function recursiveParen(begin, end) {\n const\n contains = [\n {\n begin: begin,\n end: end\n }\n ];\n contains[0].contains = contains;\n return contains;\n }\n const STRING = {\n className: 'string',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ],\n variants: [\n {\n begin: /'/,\n end: /'/\n },\n {\n begin: /\"/,\n end: /\"/\n },\n {\n begin: /`/,\n end: /`/\n },\n {\n begin: '%[Qwi]?\\\\(',\n end: '\\\\)',\n contains: recursiveParen('\\\\(', '\\\\)')\n },\n {\n begin: '%[Qwi]?\\\\[',\n end: '\\\\]',\n contains: recursiveParen('\\\\[', '\\\\]')\n },\n {\n begin: '%[Qwi]?\\\\{',\n end: /\\}/,\n contains: recursiveParen(/\\{/, /\\}/)\n },\n {\n begin: '%[Qwi]?<',\n end: '>',\n contains: recursiveParen('<', '>')\n },\n {\n begin: '%[Qwi]?\\\\|',\n end: '\\\\|'\n },\n {\n begin: /<<-\\w+$/,\n end: /^\\s*\\w+$/\n }\n ],\n relevance: 0\n };\n const Q_STRING = {\n className: 'string',\n variants: [\n {\n begin: '%q\\\\(',\n end: '\\\\)',\n contains: recursiveParen('\\\\(', '\\\\)')\n },\n {\n begin: '%q\\\\[',\n end: '\\\\]',\n contains: recursiveParen('\\\\[', '\\\\]')\n },\n {\n begin: '%q\\\\{',\n end: /\\}/,\n contains: recursiveParen(/\\{/, /\\}/)\n },\n {\n begin: '%q<',\n end: '>',\n contains: recursiveParen('<', '>')\n },\n {\n begin: '%q\\\\|',\n end: '\\\\|'\n },\n {\n begin: /<<-'\\w+'$/,\n end: /^\\s*\\w+$/\n }\n ],\n relevance: 0\n };\n const REGEXP = {\n begin: '(?!%\\\\})(' + hljs.RE_STARTERS_RE + '|\\\\n|\\\\b(case|if|select|unless|until|when|while)\\\\b)\\\\s*',\n keywords: 'case if select unless until when while',\n contains: [\n {\n className: 'regexp',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ],\n variants: [\n {\n begin: '//[a-z]*',\n relevance: 0\n },\n {\n begin: '/(?!\\\\/)',\n end: '/[a-z]*'\n }\n ]\n }\n ],\n relevance: 0\n };\n const REGEXP2 = {\n className: 'regexp',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ],\n variants: [\n {\n begin: '%r\\\\(',\n end: '\\\\)',\n contains: recursiveParen('\\\\(', '\\\\)')\n },\n {\n begin: '%r\\\\[',\n end: '\\\\]',\n contains: recursiveParen('\\\\[', '\\\\]')\n },\n {\n begin: '%r\\\\{',\n end: /\\}/,\n contains: recursiveParen(/\\{/, /\\}/)\n },\n {\n begin: '%r<',\n end: '>',\n contains: recursiveParen('<', '>')\n },\n {\n begin: '%r\\\\|',\n end: '\\\\|'\n }\n ],\n relevance: 0\n };\n const ATTRIBUTE = {\n className: 'meta',\n begin: '@\\\\[',\n end: '\\\\]',\n contains: [ hljs.inherit(hljs.QUOTE_STRING_MODE, { className: 'string' }) ]\n };\n const CRYSTAL_DEFAULT_CONTAINS = [\n EXPANSION,\n STRING,\n Q_STRING,\n REGEXP2,\n REGEXP,\n ATTRIBUTE,\n VARIABLE,\n hljs.HASH_COMMENT_MODE,\n {\n className: 'class',\n beginKeywords: 'class module struct',\n end: '$|;',\n illegal: /=/,\n contains: [\n hljs.HASH_COMMENT_MODE,\n hljs.inherit(hljs.TITLE_MODE, { begin: CRYSTAL_PATH_RE }),\n { // relevance booster for inheritance\n begin: '<' }\n ]\n },\n {\n className: 'class',\n beginKeywords: 'lib enum union',\n end: '$|;',\n illegal: /=/,\n contains: [\n hljs.HASH_COMMENT_MODE,\n hljs.inherit(hljs.TITLE_MODE, { begin: CRYSTAL_PATH_RE })\n ]\n },\n {\n beginKeywords: 'annotation',\n end: '$|;',\n illegal: /=/,\n contains: [\n hljs.HASH_COMMENT_MODE,\n hljs.inherit(hljs.TITLE_MODE, { begin: CRYSTAL_PATH_RE })\n ],\n relevance: 2\n },\n {\n className: 'function',\n beginKeywords: 'def',\n end: /\\B\\b/,\n contains: [\n hljs.inherit(hljs.TITLE_MODE, {\n begin: CRYSTAL_METHOD_RE,\n endsParent: true\n })\n ]\n },\n {\n className: 'function',\n beginKeywords: 'fun macro',\n end: /\\B\\b/,\n contains: [\n hljs.inherit(hljs.TITLE_MODE, {\n begin: CRYSTAL_METHOD_RE,\n endsParent: true\n })\n ],\n relevance: 2\n },\n {\n className: 'symbol',\n begin: hljs.UNDERSCORE_IDENT_RE + '(!|\\\\?)?:',\n relevance: 0\n },\n {\n className: 'symbol',\n begin: ':',\n contains: [\n STRING,\n { begin: CRYSTAL_METHOD_RE }\n ],\n relevance: 0\n },\n {\n className: 'number',\n variants: [\n { begin: '\\\\b0b([01_]+)' + INT_SUFFIX },\n { begin: '\\\\b0o([0-7_]+)' + INT_SUFFIX },\n { begin: '\\\\b0x([A-Fa-f0-9_]+)' + INT_SUFFIX },\n { begin: '\\\\b([1-9][0-9_]*[0-9]|[0-9])(\\\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?' + FLOAT_SUFFIX + '(?!_)' },\n { begin: '\\\\b([1-9][0-9_]*|0)' + INT_SUFFIX }\n ],\n relevance: 0\n }\n ];\n SUBST.contains = CRYSTAL_DEFAULT_CONTAINS;\n EXPANSION.contains = CRYSTAL_DEFAULT_CONTAINS.slice(1); // without EXPANSION\n\n return {\n name: 'Crystal',\n aliases: [ 'cr' ],\n keywords: CRYSTAL_KEYWORDS,\n contains: CRYSTAL_DEFAULT_CONTAINS\n };\n}\n\nmodule.exports = crystal;\n"],"names":["crystal","hljs","INT_SUFFIX","FLOAT_SUFFIX","CRYSTAL_IDENT_RE","CRYSTAL_METHOD_RE","CRYSTAL_PATH_RE","CRYSTAL_KEYWORDS","SUBST","VARIABLE","EXPANSION","recursiveParen","begin","end","contains","STRING","Q_STRING","REGEXP","REGEXP2","ATTRIBUTE","CRYSTAL_DEFAULT_CONTAINS","crystal_1"],"mappings":";4YAQA,SAASA,EAAQC,EAAM,CACrB,MAAMC,EAAa,4BACbC,EAAe,gBACfC,EAAmB,sBACnBC,EAAoB,gHACpBC,EAAkB,iCAClBC,EAAmB,CACvB,SAAUH,EACV,QACE,yYAIF,QAAS,gBACb,EACQI,EAAQ,CACZ,UAAW,QACX,MAAO,MACP,IAAK,KACL,SAAUD,CACd,EAEQE,EAAW,CAGf,UAAW,WACX,MAAO,4DACX,EACQC,EAAY,CAChB,UAAW,oBACX,SAAU,CACR,CACE,MAAO,SACP,IAAK,QACN,EACD,CACE,MAAO,OACP,IAAK,MACN,CACF,EACD,SAAUH,CACd,EAEE,SAASI,EAAeC,EAAOC,EAAK,CAClC,MACIC,EAAW,CACT,CACE,MAAOF,EACP,IAAKC,CACN,CACX,EACI,OAAAC,EAAS,CAAC,EAAE,SAAWA,EAChBA,CACR,CACD,MAAMC,EAAS,CACb,UAAW,SACX,SAAU,CACRd,EAAK,iBACLO,CACD,EACD,SAAU,CACR,CACE,MAAO,IACP,IAAK,GACN,EACD,CACE,MAAO,IACP,IAAK,GACN,EACD,CACE,MAAO,IACP,IAAK,GACN,EACD,CACE,MAAO,aACP,IAAK,MACL,SAAUG,EAAe,MAAO,KAAK,CACtC,EACD,CACE,MAAO,aACP,IAAK,MACL,SAAUA,EAAe,MAAO,KAAK,CACtC,EACD,CACE,MAAO,aACP,IAAK,KACL,SAAUA,EAAe,KAAM,IAAI,CACpC,EACD,CACE,MAAO,WACP,IAAK,IACL,SAAUA,EAAe,IAAK,GAAG,CAClC,EACD,CACE,MAAO,aACP,IAAK,KACN,EACD,CACE,MAAO,UACP,IAAK,UACN,CACF,EACD,UAAW,CACf,EACQK,EAAW,CACf,UAAW,SACX,SAAU,CACR,CACE,MAAO,QACP,IAAK,MACL,SAAUL,EAAe,MAAO,KAAK,CACtC,EACD,CACE,MAAO,QACP,IAAK,MACL,SAAUA,EAAe,MAAO,KAAK,CACtC,EACD,CACE,MAAO,QACP,IAAK,KACL,SAAUA,EAAe,KAAM,IAAI,CACpC,EACD,CACE,MAAO,MACP,IAAK,IACL,SAAUA,EAAe,IAAK,GAAG,CAClC,EACD,CACE,MAAO,QACP,IAAK,KACN,EACD,CACE,MAAO,YACP,IAAK,UACN,CACF,EACD,UAAW,CACf,EACQM,EAAS,CACb,MAAO,YAAchB,EAAK,eAAiB,2DAC3C,SAAU,yCACV,SAAU,CACR,CACE,UAAW,SACX,SAAU,CACRA,EAAK,iBACLO,CACD,EACD,SAAU,CACR,CACE,MAAO,WACP,UAAW,CACZ,EACD,CACE,MAAO,WACP,IAAK,SACN,CACF,CACF,CACF,EACD,UAAW,CACf,EACQU,EAAU,CACd,UAAW,SACX,SAAU,CACRjB,EAAK,iBACLO,CACD,EACD,SAAU,CACR,CACE,MAAO,QACP,IAAK,MACL,SAAUG,EAAe,MAAO,KAAK,CACtC,EACD,CACE,MAAO,QACP,IAAK,MACL,SAAUA,EAAe,MAAO,KAAK,CACtC,EACD,CACE,MAAO,QACP,IAAK,KACL,SAAUA,EAAe,KAAM,IAAI,CACpC,EACD,CACE,MAAO,MACP,IAAK,IACL,SAAUA,EAAe,IAAK,GAAG,CAClC,EACD,CACE,MAAO,QACP,IAAK,KACN,CACF,EACD,UAAW,CACf,EACQQ,EAAY,CAChB,UAAW,OACX,MAAO,OACP,IAAK,MACL,SAAU,CAAElB,EAAK,QAAQA,EAAK,kBAAmB,CAAE,UAAW,QAAQ,CAAE,CAAG,CAC/E,EACQmB,EAA2B,CAC/BV,EACAK,EACAC,EACAE,EACAD,EACAE,EACAV,EACAR,EAAK,kBACL,CACE,UAAW,QACX,cAAe,sBACf,IAAK,MACL,QAAS,IACT,SAAU,CACRA,EAAK,kBACLA,EAAK,QAAQA,EAAK,WAAY,CAAE,MAAOK,EAAiB,EACxD,CACE,MAAO,GAAK,CACf,CACF,EACD,CACE,UAAW,QACX,cAAe,iBACf,IAAK,MACL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