diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-12-13 20:44:08 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-12-13 20:44:08 -0600 |
commit | abc0de079b895af1b705894eb2b63596e3e37274 (patch) | |
tree | c51d24dce55da8d9b227cbac6c2ef64a59d8e9dc /pyssg.xyz/live/static/hl/languages/fsharp.min.js | |
parent | db4b3736d4f45137a733ce5eb1e50aec968ca1d2 (diff) |
add pyssg.xyz configs and templates
Diffstat (limited to 'pyssg.xyz/live/static/hl/languages/fsharp.min.js')
-rw-r--r-- | pyssg.xyz/live/static/hl/languages/fsharp.min.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pyssg.xyz/live/static/hl/languages/fsharp.min.js b/pyssg.xyz/live/static/hl/languages/fsharp.min.js new file mode 100644 index 0000000..e83a5f5 --- /dev/null +++ b/pyssg.xyz/live/static/hl/languages/fsharp.min.js @@ -0,0 +1,13 @@ +hljs.registerLanguage("fsharp",(()=>{"use strict";return e=>{const n={begin:"<", +end:">",contains:[e.inherit(e.TITLE_MODE,{begin:/'[a-zA-Z0-9_]+/})]};return{ +name:"F#",aliases:["fs"], +keywords:"abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield", +illegal:/\/\*/,contains:[{className:"keyword",begin:/\b(yield|return|let|do)!/ +},{className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},{ +className:"string",begin:'"""',end:'"""'},e.COMMENT("\\(\\*(\\s)","\\*\\)",{ +contains:["self"]}),{className:"class",beginKeywords:"type",end:"\\(|=|$", +excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE,n]},{className:"meta", +begin:"\\[<",end:">\\]",relevance:10},{className:"symbol", +begin:"\\B('[A-Za-z])\\b",contains:[e.BACKSLASH_ESCAPE] +},e.C_LINE_COMMENT_MODE,e.inherit(e.QUOTE_STRING_MODE,{illegal:null +}),e.C_NUMBER_MODE]}}})());
\ No newline at end of file |