Вход Регистрация
Файл: error-kitty/node_modules/highlight.js/lib/languages/json.js
Строк: 40
<?php
module
.exports = function(hljs) {
  var 
LITERALS = {literal'true false null'};
  var 
TYPES = [
    
hljs.QUOTE_STRING_MODE,
    
hljs.C_NUMBER_MODE
  
];
  var 
VALUE_CONTAINER = {
    
className'value',
    
end','endsWithParenttrueexcludeEndtrue,
    
containsTYPES,
    
keywordsLITERALS
  
};
  var 
OBJECT = {
    
begin'{'end'}',
    
contains: [
      {
        
className'attribute',
        
begin'\s*"'end'"\s*:\s*'excludeBegintrueexcludeEndtrue,
        
contains: [hljs.BACKSLASH_ESCAPE],
        
illegal'\n',
        
startsVALUE_CONTAINER
      
}
    ],
    
illegal'\S'
  
};
  var ARRAY = {
    
begin'\['end'\]',
    
contains: [hljs.inherit(VALUE_CONTAINER, {classNamenull})], // inherit is also a workaround for a bug that makes shared modes with endsWithParent compile only the ending of one of the parents
    
illegal'\S'
  
};
  
TYPES.splice(TYPES.length0OBJECT, ARRAY);
  return {
    
containsTYPES,
    
keywordsLITERALS,
    
illegal'\S'
  
};
};
?>
Онлайн: 0
Реклама