/***/ (function(module, exports, __webpack_require__) {
'use strict';
var BrushBase = __webpack_require__(22);
var regexLib = __webpack_require__(3).commonRegExp;
function Brush() {
// YAML primarily consists of key-value pairs, lists, dictionaries, and comments
this.regexList = [
{
regex: /^\s*#.*/gm, // YAML comments start with #
css: 'comments'
},
{
regex: /#.*$/gm, // Matches comments anywhere on the line
css: 'comments'
},
{
regex: /(["'])(?:(?=(\\?))\2.)*?\1/gm, // Matches double or single quoted strings
css: 'string'
},
{
regex: /(\b[a-z0-9_]+\b)(\s*:)/gim, // Matches keys in key-value pairs
css: 'keyword'
},
{
regex: /(\s*-\s*)(?=[\w])/g, // Matches hyphens in lists
css: 'string'
},
{
regex: /\b(true|false|null)\b/gi, // Boolean and null values
css: 'value'
},
{
regex: /\b(\d+\.?\d*)\b/g, // Matches numbers
css: 'value'
}
];
};
Brush.prototype = new BrushBase();
Brush.aliases = ['yml'];
module.exports = Brush;
/***/ }),