1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/scala.js"],"names":["module","exports","hljs","SUBST","className","variants","begin","end","STRING","illegal","contains","BACKSLASH_ESCAPE","relevance","TYPE","NAME","CLASS","beginKeywords","excludeEnd","C_LINE_COMMENT_MODE","C_BLOCK_COMMENT_MODE","excludeBegin","METHOD","name","keywords","literal","keyword","C_NUMBER_MODE"],"mappings":"oGA0IAA,EAAOC,QAlIP,SAAeC,GACb,IAMMC,EAAQ,CACZC,UAAW,QACXC,SAAU,CACR,CACEC,MAAO,oBAET,CACEA,MAAO,OACPC,IAAK,QAKLC,EAAS,CACbJ,UAAW,SACXC,SAAU,CACR,CACEC,MAAO,IACPC,IAAK,IACLE,QAAS,MACTC,SAAU,CAAER,EAAKS,mBAEnB,CACEL,MAAO,MACPC,IAAK,MACLK,UAAW,IAEb,CACEN,MAAO,UACPC,IAAK,IACLE,QAAS,MACTC,SAAU,CAAER,EAAKS,iBACfR,IAEJ,CACEC,UAAW,SACXE,MAAO,YACPC,IAAK,MACLG,SAAU,CAAEP,GACZS,UAAW,MAWXC,EAAO,CACXT,UAAW,OACXE,MAAO,wBACPM,UAAW,GAGPE,EAAO,CACXV,UAAW,QACXE,MAAO,iFACPM,UAAW,GAGPG,EAAQ,CACZX,UAAW,QACXY,cAAe,0BACfT,IAAK,aACLU,YAAY,EACZP,SAAU,CACRR,EAAKgB,oBACLhB,EAAKiB,qBACL,CACEH,cAAe,eACfJ,UAAW,IAEb,CACEN,MAAO,KACPC,IAAK,KACLa,cAAc,EACdH,YAAY,EACZL,UAAW,EACXF,SAAU,CAAEG,IAEd,CACET,UAAW,SACXE,MAAO,KACPC,IAAK,KACLa,cAAc,EACdH,YAAY,EACZL,UAAW,EACXF,SAAU,CAAEG,IAEdC,IAIEO,EAAS,CACbjB,UAAW,WACXY,cAAe,MACfT,IAAK,cACLU,YAAY,EACZP,SAAU,CAAEI,IAGd,MAAO,CACLQ,KAAM,QACNC,SAAU,CACRC,QAAS,kBACTC,QAAS,yPAEXf,SAAU,CACRR,EAAKgB,oBACLhB,EAAKiB,qBACLX,EAnEW,CACbJ,UAAW,SACXE,MAAO,uBAmELO,EACAQ,EACAN,EACAb,EAAKwB,cA3HU,CACjBtB,UAAW,OACXE,MAAO","file":"highlight/scala.js?v=c829584c876eae685951","sourcesContent":["/*\nLanguage: Scala\nCategory: functional\nAuthor: Jan Berkel <jan.berkel@gmail.com>\nContributors: Erik Osheim <d_m@plastic-idolatry.com>\nWebsite: https://www.scala-lang.org\n*/\n\nfunction scala(hljs) {\n const ANNOTATION = {\n className: 'meta',\n begin: '@[A-Za-z]+'\n };\n\n // used in strings for escaping/interpolation/substitution\n const SUBST = {\n className: 'subst',\n variants: [\n {\n begin: '\\\\$[A-Za-z0-9_]+'\n },\n {\n begin: /\\$\\{/,\n end: /\\}/\n }\n ]\n };\n\n const STRING = {\n className: 'string',\n variants: [\n {\n begin: '\"',\n end: '\"',\n illegal: '\\\\n',\n contains: [ hljs.BACKSLASH_ESCAPE ]\n },\n {\n begin: '\"\"\"',\n end: '\"\"\"',\n relevance: 10\n },\n {\n begin: '[a-z]+\"',\n end: '\"',\n illegal: '\\\\n',\n contains: [ hljs.BACKSLASH_ESCAPE,\n SUBST ]\n },\n {\n className: 'string',\n begin: '[a-z]+\"\"\"',\n end: '\"\"\"',\n contains: [ SUBST ],\n relevance: 10\n }\n ]\n\n };\n\n const SYMBOL = {\n className: 'symbol',\n begin: '\\'\\\\w[\\\\w\\\\d_]*(?!\\')'\n };\n\n const TYPE = {\n className: 'type',\n begin: '\\\\b[A-Z][A-Za-z0-9_]*',\n relevance: 0\n };\n\n const NAME = {\n className: 'title',\n begin: /[^0-9\\n\\t \"'(),.`{}\\[\\]:;][^\\n\\t \"'(),.`{}\\[\\]:;]+|[^0-9\\n\\t \"'(),.`{}\\[\\]:;=]/,\n relevance: 0\n };\n\n const CLASS = {\n className: 'class',\n beginKeywords: 'class object trait type',\n end: /[:={\\[\\n;]/,\n excludeEnd: true,\n contains: [\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n {\n beginKeywords: 'extends with',\n relevance: 10\n },\n {\n begin: /\\[/,\n end: /\\]/,\n excludeBegin: true,\n excludeEnd: true,\n relevance: 0,\n contains: [ TYPE ]\n },\n {\n className: 'params',\n begin: /\\(/,\n end: /\\)/,\n excludeBegin: true,\n excludeEnd: true,\n relevance: 0,\n contains: [ TYPE ]\n },\n NAME\n ]\n };\n\n const METHOD = {\n className: 'function',\n beginKeywords: 'def',\n end: /[:={\\[(\\n;]/,\n excludeEnd: true,\n contains: [ NAME ]\n };\n\n return {\n name: 'Scala',\n keywords: {\n literal: 'true false null',\n keyword: 'type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit'\n },\n contains: [\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n STRING,\n SYMBOL,\n TYPE,\n METHOD,\n CLASS,\n hljs.C_NUMBER_MODE,\n ANNOTATION\n ]\n };\n}\n\nmodule.exports = scala;\n"],"sourceRoot":""}
|