diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/highlight.js/lib/languages/ocaml.js | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) |
remove node_modules
Diffstat (limited to 'node_modules/highlight.js/lib/languages/ocaml.js')
-rw-r--r-- | node_modules/highlight.js/lib/languages/ocaml.js | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/node_modules/highlight.js/lib/languages/ocaml.js b/node_modules/highlight.js/lib/languages/ocaml.js deleted file mode 100644 index 2a686f85f..000000000 --- a/node_modules/highlight.js/lib/languages/ocaml.js +++ /dev/null @@ -1,70 +0,0 @@ -module.exports = function(hljs) { - /* missing support for heredoc-like string (OCaml 4.0.2+) */ - return { - aliases: ['ml'], - keywords: { - keyword: - 'and as assert asr begin class constraint do done downto else end ' + - 'exception external for fun function functor if in include ' + - 'inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method ' + - 'mod module mutable new object of open! open or private rec sig struct ' + - 'then to try type val! val virtual when while with ' + - /* camlp4 */ - 'parser value', - built_in: - /* built-in types */ - 'array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit ' + - /* (some) types in Pervasives */ - 'in_channel out_channel ref', - literal: - 'true false' - }, - illegal: /\/\/|>>/, - lexemes: '[a-z_]\\w*!?', - contains: [ - { - className: 'literal', - begin: '\\[(\\|\\|)?\\]|\\(\\)', - relevance: 0 - }, - hljs.COMMENT( - '\\(\\*', - '\\*\\)', - { - contains: ['self'] - } - ), - { /* type variable */ - className: 'symbol', - begin: '\'[A-Za-z_](?!\')[\\w\']*' - /* the grammar is ambiguous on how 'a'b should be interpreted but not the compiler */ - }, - { /* polymorphic variant */ - className: 'type', - begin: '`[A-Z][\\w\']*' - }, - { /* module or constructor */ - className: 'type', - begin: '\\b[A-Z][\\w\']*', - relevance: 0 - }, - { /* don't color identifiers, but safely catch all identifiers with '*/ - begin: '[a-z_]\\w*\'[\\w\']*', relevance: 0 - }, - hljs.inherit(hljs.APOS_STRING_MODE, {className: 'string', relevance: 0}), - hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}), - { - className: 'number', - begin: - '\\b(0[xX][a-fA-F0-9_]+[Lln]?|' + - '0[oO][0-7_]+[Lln]?|' + - '0[bB][01_]+[Lln]?|' + - '[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)', - relevance: 0 - }, - { - begin: /[-=]>/ // relevance booster - } - ] - } -};
\ No newline at end of file |