all files / lib/languages/ json.js

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17                           
"use strict";
 
Object.defineProperty(exports, "__esModule", {
    value: true
});
var json = {
    property: /"(\b|\B)[\w-]+"(?=\s*:)/ig,
    string: /"(?!:)(\\?[^'"])*?"(?!:)/g,
    number: /-?\d*\.?\d+([Ee]-?\d+)?/g,
    punctuation: /[{}[\]);,]/g,
    operator: /:/g,
    "boolean": /\b(true|false)\b/gi,
    "null": /\bnull\b/gi,
    _order: ["property", "string", "number", "punctuation", "operator", "boolean", "null"]
};
 
exports.json = json;