]> luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/reasonml.min.js
Initial commit.
[flow-web.git] / static / highlight / es / languages / reasonml.min.js
1 /*! `reasonml` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar=(()=>{"use strict";return e=>({name:"ReasonML",aliases:["re"],
3 keywords:{$pattern:/[a-z_]\w*!?/,
4 keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],
5 built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],
6 literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",
7 match:/\[(\|\|)?\]|\(\)/,relevance:0
8 },e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{
9 scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",
10 match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{
11 match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",
12 match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,
13 relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:"string",relevance:0
14 }),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{
15 match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{
16 match:/\b0[bB][01_]+[Lln]?/},{
17 match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]})
18 })();export default hljsGrammar;