зеркало из https://github.com/nextcloud/text.git
1 строка
2.5 KiB
Plaintext
1 строка
2.5 KiB
Plaintext
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/smalltalk.js"],"names":["module","exports","hljs","CHAR","className","begin","SYMBOL","UNDERSCORE_IDENT_RE","name","aliases","keywords","contains","COMMENT","APOS_STRING_MODE","relevance","VAR_IDENT_RE","C_NUMBER_MODE","returnBegin","end","illegal"],"mappings":"oGA8DAA,EAAOC,QAvDP,SAAmBC,GACjB,IACMC,EAAO,CACXC,UAAW,SACXC,MAAO,WAEHC,EAAS,CACbF,UAAW,SACXC,MAAO,IAAMH,EAAKK,qBAEpB,MAAO,CACLC,KAAM,YACNC,QAAS,CAAE,MACXC,SAAU,wCACVC,SAAU,CACRT,EAAKU,QAAQ,IAAK,KAClBV,EAAKW,iBACL,CACET,UAAW,OACXC,MAAO,wBACPS,UAAW,GAEb,CACET,MAAOU,sBACPD,UAAW,GAEbZ,EAAKc,cACLV,EACAH,EACA,CAIEE,MAAO,4DACPY,aAAa,EACbC,IAAK,KACLC,QAAS,KACTR,SAAU,CAAE,CACVN,MAAO,kCAGX,CACEA,MAAO,OACPa,IAAK,MACLP,SAAU,CACRT,EAAKW,iBACLV,EACAD,EAAKc,cACLV","file":"highlight/smalltalk.js?v=0ca692cdaa2be1f05e52","sourcesContent":["/*\nLanguage: Smalltalk\nDescription: Smalltalk is an object-oriented, dynamically typed reflective programming language.\nAuthor: Vladimir Gubarkov <xonixx@gmail.com>\nWebsite: https://en.wikipedia.org/wiki/Smalltalk\n*/\n\nfunction smalltalk(hljs) {\n const VAR_IDENT_RE = '[a-z][a-zA-Z0-9_]*';\n const CHAR = {\n className: 'string',\n begin: '\\\\$.{1}'\n };\n const SYMBOL = {\n className: 'symbol',\n begin: '#' + hljs.UNDERSCORE_IDENT_RE\n };\n return {\n name: 'Smalltalk',\n aliases: [ 'st' ],\n keywords: 'self super nil true false thisContext', // only 6\n contains: [\n hljs.COMMENT('\"', '\"'),\n hljs.APOS_STRING_MODE,\n {\n className: 'type',\n begin: '\\\\b[A-Z][A-Za-z0-9_]*',\n relevance: 0\n },\n {\n begin: VAR_IDENT_RE + ':',\n relevance: 0\n },\n hljs.C_NUMBER_MODE,\n SYMBOL,\n CHAR,\n {\n // This looks more complicated than needed to avoid combinatorial\n // explosion under V8. It effectively means `| var1 var2 ... |` with\n // whitespace adjacent to `|` being optional.\n begin: '\\\\|[ ]*' + VAR_IDENT_RE + '([ ]+' + VAR_IDENT_RE + ')*[ ]*\\\\|',\n returnBegin: true,\n end: /\\|/,\n illegal: /\\S/,\n contains: [ {\n begin: '(\\\\|[ ]*)?' + VAR_IDENT_RE\n } ]\n },\n {\n begin: '#\\\\(',\n end: '\\\\)',\n contains: [\n hljs.APOS_STRING_MODE,\n CHAR,\n hljs.C_NUMBER_MODE,\n SYMBOL\n ]\n }\n ]\n };\n}\n\nmodule.exports = smalltalk;\n"],"sourceRoot":""} |