Liferay.Loader.define("fragment-web$codemirror@5.65.2/mode/yaml/yaml",["module","exports","require","../../lib/codemirror"],(function(e,i,r){var t,n=void 0;window;t=function(e){"use strict";e.defineMode("yaml",(function(){var e=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");return{token:function(i,r){var t=i.peek(),n=r.escaped;if(r.escaped=!1,"#"==t&&(0==i.pos||/\s/.test(i.string.charAt(i.pos-1))))return i.skipToEnd(),"comment";if(i.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(r.literal&&i.indentation()>r.keyCol)return i.skipToEnd(),"string";if(r.literal&&(r.literal=!1),i.sol()){if(r.keyCol=0,r.pair=!1,r.pairStart=!1,i.match("---"))return"def";if(i.match("..."))return"def";if(i.match(/\s*-\s+/))return"meta"}if(i.match(/^(\{|\}|\[|\])/))return"{"==t?r.inlinePairs++:"}"==t?r.inlinePairs--:"["==t?r.inlineList++:r.inlineList--,"meta";if(r.inlineList>0&&!n&&","==t)return i.next(),"meta";if(r.inlinePairs>0&&!n&&","==t)return r.keyCol=0,r.pair=!1,r.pairStart=!1,i.next(),"meta";if(r.pairStart){if(i.match(/^\s*(\||\>)\s*/))return r.literal=!0,"meta";if(i.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==r.inlinePairs&&i.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(r.inlinePairs>0&&i.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(i.match(e))return"keyword"}return!r.pair&&i.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(r.pair=!0,r.keyCol=i.indentation(),"atom"):r.pair&&i.match(/^:\s*/)?(r.pairStart=!0,"meta"):(r.pairStart=!1,r.escaped="\\"==t,i.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}})),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")},"object"==typeof i&&"object"==typeof e?t(r("../../lib/codemirror")):"function"==typeof n&&n.amd?n(["../../lib/codemirror"],t):t(CodeMirror)}));
//# sourceMappingURL=yaml.js.map