Files
Library/node_modules/@shikijs/langs/dist/ocaml.mjs

6 lines
66 KiB
JavaScript
Raw Normal View History

2026-01-09 23:05:52 -05:00
const lang = Object.freeze(JSON.parse("{\"displayName\":\"OCaml\",\"fileTypes\":[\".ml\",\".mli\"],\"name\":\"ocaml\",\"patterns\":[{\"include\":\"#comment\"},{\"include\":\"#pragma\"},{\"include\":\"#decl\"}],\"repository\":{\"attribute\":{\"begin\":\"(\\\\[)\\\\s*((?<![-!#-\\\\&*+./:<-@^|~])@{1,3}(?![-!#-\\\\&*+./:<-@^|~]))\",\"beginCaptures\":{\"1\":{\"name\":\"constant.language constant.numeric entity.other.attribute-name.id.css strong\"},\"2\":{\"name\":\"variable.other.class.js message.error variable.interpolation string.regexp\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"constant.language constant.numeric entity.other.attribute-name.id.css strong\"}},\"patterns\":[{\"include\":\"#attributePayload\"}]},\"attributeIdentifier\":{\"captures\":{\"1\":{\"name\":\"variable.other.class.js message.error variable.interpolation string.regexp strong\"},\"2\":{\"name\":\"punctuation.definition.tag\"}},\"match\":\"((?<![-!#-\\\\&*+./:<-@^|~])%(?![-!#-\\\\&*+./:<-@^|~]))((?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*)\"},\"attributePayload\":{\"patterns\":[{\"begin\":\"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)%)(?![-!#-\\\\&*+./:<-@^|~])\",\"end\":\"((?<![-!#-\\\\&*+./:<-@^|~])[:?](?![-!#-\\\\&*+./:<-@^|~]))|(?<=\\\\s)|(?=])\",\"endCaptures\":{\"1\":{\"name\":\"variable.other.class.js message.error variable.interpolation string.regexp\"}},\"patterns\":[{\"include\":\"#pathModuleExtended\"},{\"include\":\"#pathRecord\"}]},{\"begin\":\"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^):)(?![-!#-\\\\&*+./:<-@^|~])\",\"end\":\"(?=])\",\"patterns\":[{\"include\":\"#signature\"},{\"include\":\"#type\"}]},{\"begin\":\"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)\\\\?)(?![-!#-\\\\&*+./:<-@^|~])\",\"end\":\"(?=])\",\"patterns\":[{\"begin\":\"(?<=(?:[^-!#-\\\\&*+./:<-@^|~]|^)\\\\?)(?![-!#-\\\\&*+./:<-@^|~])\",\"end\":\"(?=])|\\\\bwhen\\\\b\",\"endCaptures\":{\"1\":{}},\"patterns\":[{\"include\":\"#pattern\"}]},{\"begin\":\"(?<=(?:\\\\P{word}|^)when)(?!\\\\p{word})\",\"end\":\"(?=])\",\"patterns\":[{\"include\":\"#term\"}]}]},{\"include\":\"#term\"}]},\"bindClassTerm\":{\"patterns\":[{\"begin\":\"(?<=(?:\\\\P{word}|^)(?:and|class|type))(?!\\\\p{word})\",\"end\":\"(?<![-!#-\\\\&*+./:<-@^|~])(:)|(=)(?![-!#-\\\\&*+./:<-@^|~])|(?=;;|[])}]|\\\\b(?:end|and|class|exception|external|in|include|inherit|initializer|let|method|module|open|type|val)\\\\b)\",\"endCaptures\":{\"1\":{\"name\":\"variable.other.class.js message.error variable.interpolation string.regexp strong\"},\"2\":{\"name\":\"support.type strong\"}},\"patterns\":[{\"begin\":\"(?<=(?:\\\\P{word}|^)(?:and|class|type))(?!\\\\p{word})\",\"end\":\"(?=(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*\\\\s*,|[^%\\\\s[:lower:]])|(?!\\\\b(?:and|'|asr??|assert|\\\\*|begin|class|[,:@]|constraint|do|done|downto|else|end|=|exception|external|false|for|\\\\.|fun|function|functor|[->]|if|in|include|inherit|initializer|land|lazy|[(<\\\\[{]|let|lor|lsl|lsr|lxor|match|method|mod|module|mutable|new|nonrec|#|object|of|open|or|[%+]|private|[\\\"?]|rec|[]);\\\\\\\\}]|sig|/|struct|then|~|to|true|try|type|val|\\\\||virtual|when|while|with)\\\\b(?:[^']|$))\\\\b(?=[_[:lower:]])[_[:alpha:]]['[:word:]]*|(?=\\\\btype\\\\b)\",\"endCaptures\":{\"0\":{\"name\":\"entity.name.function strong emphasis\"}},\"patterns\":[{\"include\
export default [
lang
]