1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/fsharp.js"],"names":["module","exports","hljs","TYPEPARAM","begin","end","contains","inherit","TITLE_MODE","name","aliases","keywords","illegal","className","COMMENT","beginKeywords","excludeEnd","UNDERSCORE_TITLE_MODE","relevance","BACKSLASH_ESCAPE","C_LINE_COMMENT_MODE","QUOTE_STRING_MODE","C_NUMBER_MODE"],"mappings":"mGAqFAA,EAAOC,QA5EP,SAAgBC,GACd,IAAMC,EAAY,CAChBC,MAAO,IACPC,IAAK,IACLC,SAAU,CACRJ,EAAKK,QAAQL,EAAKM,WAAY,CAC5BJ,MAAO,qBAKb,MAAO,CACLK,KAAM,KACNC,QAAS,CAAC,MACVC,SACE,wXAMFC,QAAS,OACTN,SAAU,CACR,CAEEO,UAAW,UACXT,MAAO,4BAET,CACES,UAAW,SACXT,MAAO,KACPC,IAAK,IACLC,SAAU,CACR,CACEF,MAAO,QAIb,CACES,UAAW,SACXT,MAAO,MACPC,IAAK,OAEPH,EAAKY,QAAQ,cAAe,SAAU,CACpCR,SAAU,CAAC,UAEb,CACEO,UAAW,QACXE,cAAe,OACfV,IAAK,UACLW,YAAY,EACZV,SAAU,CACRJ,EAAKe,sBACLd,IAGJ,CACEU,UAAW,OACXT,MAAO,OACPC,IAAK,OACLa,UAAW,IAEb,CACEL,UAAW,SACXT,MAAO,oBACPE,SAAU,CAACJ,EAAKiB,mBAElBjB,EAAKkB,oBACLlB,EAAKK,QAAQL,EAAKmB,kBAAmB,CACnCT,QAAS,OAEXV,EAAKoB","file":"highlight/fsharp.js?v=c3ac6a3c606bdfde3afb","sourcesContent":["/*\nLanguage: F#\nAuthor: Jonas Follesø <jonas@follesoe.no>\nContributors: Troy Kershaw <hello@troykershaw.com>, Henrik Feldt <henrik@haf.se>\nWebsite: https://docs.microsoft.com/en-us/dotnet/fsharp/\nCategory: functional\n*/\n\n/** @type LanguageFn */\nfunction fsharp(hljs) {\n const TYPEPARAM = {\n begin: '<',\n end: '>',\n contains: [\n hljs.inherit(hljs.TITLE_MODE, {\n begin: /'[a-zA-Z0-9_]+/\n })\n ]\n };\n\n return {\n name: 'F#',\n aliases: ['fs'],\n keywords:\n 'abstract and as assert base begin class default delegate do done ' +\n 'downcast downto elif else end exception extern false finally for ' +\n 'fun function global if in inherit inline interface internal lazy let ' +\n 'match member module mutable namespace new null of open or ' +\n 'override private public rec return sig static struct then to ' +\n 'true try type upcast use val void when while with yield',\n illegal: /\\/\\*/,\n contains: [\n {\n // monad builder keywords (matches before non-bang kws)\n className: 'keyword',\n begin: /\\b(yield|return|let|do)!/\n },\n {\n className: 'string',\n begin: '@\"',\n end: '\"',\n contains: [\n {\n begin: '\"\"'\n }\n ]\n },\n {\n className: 'string',\n begin: '\"\"\"',\n end: '\"\"\"'\n },\n hljs.COMMENT('\\\\(\\\\*(\\\\s)', '\\\\*\\\\)', {\n contains: [\"self\"]\n }),\n {\n className: 'class',\n beginKeywords: 'type',\n end: '\\\\(|=|$',\n excludeEnd: true,\n contains: [\n hljs.UNDERSCORE_TITLE_MODE,\n TYPEPARAM\n ]\n },\n {\n className: 'meta',\n begin: '\\\\[<',\n end: '>\\\\]',\n relevance: 10\n },\n {\n className: 'symbol',\n begin: '\\\\B(\\'[A-Za-z])\\\\b',\n contains: [hljs.BACKSLASH_ESCAPE]\n },\n hljs.C_LINE_COMMENT_MODE,\n hljs.inherit(hljs.QUOTE_STRING_MODE, {\n illegal: null\n }),\n hljs.C_NUMBER_MODE\n ]\n };\n}\n\nmodule.exports = fsharp;\n"],"sourceRoot":""}
|