use prism-tomorrow.css
This commit is contained in:
27
docs/_style/prism-master/components/prism-ocaml.js
Normal file
27
docs/_style/prism-master/components/prism-ocaml.js
Normal file
@ -0,0 +1,27 @@
|
||||
Prism.languages.ocaml = {
|
||||
'comment': /\(\*[\s\S]*?\*\)/,
|
||||
'string': [
|
||||
{
|
||||
pattern: /"(?:\\.|[^\\\r\n"])*"/,
|
||||
greedy: true
|
||||
},
|
||||
{
|
||||
pattern: /(['`])(?:\\(?:\d+|x[\da-f]+|.)|(?!\1)[^\\\r\n])\1/i,
|
||||
greedy: true
|
||||
}
|
||||
],
|
||||
'number': /\b(?:0x[\da-f][\da-f_]+|(?:0[bo])?\d[\d_]*\.?[\d_]*(?:e[+-]?[\d_]+)?)/i,
|
||||
'type': {
|
||||
pattern: /\B['`]\w*/,
|
||||
alias: 'variable'
|
||||
},
|
||||
'directive': {
|
||||
pattern: /\B#\w+/,
|
||||
alias: 'function'
|
||||
},
|
||||
'keyword': /\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|object|of|open|prefix|private|rec|then|sig|struct|to|try|type|val|value|virtual|where|while|with)\b/,
|
||||
'boolean': /\b(?:false|true)\b/,
|
||||
// Custom operators are allowed
|
||||
'operator': /:=|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lxor|lsl|lsr|mod|nor|or)\b/,
|
||||
'punctuation': /[(){}\[\]|_.,:;]/
|
||||
};
|
Reference in New Issue
Block a user