Вход Регистрация
Файл: error-kitty/node_modules/highlight.js/lib/languages/ocaml.js
Строк: 65
<?php
module
.exports = function(hljs) {
  return {
    
aliases: ['ml'],
    
keywords: {
      
keyword:
        
'and as assert asr 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 object of open or private rec ref sig struct ' +
        
'then to true try type val virtual when while with parser value',
      
built_in:
        
'bool char float int list unit array exn option int32 int64 nativeint ' +
        
'format4 format6 lazy_t in_channel out_channel string'
    
},
    
illegal////,
    
contains: [
      {
        
className'string',
        
begin'"""'end'"""'
      
},
      {
        
className'comment',
        
begin'\(\*'end'\*\)',
        
contains: ['self']
      },
      {
        
className'class',
        
beginKeywords'type'end'\(|=|$'excludeEndtrue,
        
contains: [
          
hljs.UNDERSCORE_TITLE_MODE
        
]
      },
      {
        
className'annotation',
        
begin'\[<'end'>\]'
      
},
      
hljs.C_BLOCK_COMMENT_MODE,
      
hljs.inherit(hljs.APOS_STRING_MODE, {illegalnull}),
      
hljs.inherit(hljs.QUOTE_STRING_MODE, {illegalnull}),
      
hljs.C_NUMBER_MODE
    
]
  }
};
?>
Онлайн: 0
Реклама