1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/yaml.js"],"names":["module","exports","hljs","keyName","KEY","className","variants","begin","keyPrefix","STRING","relevance","end","contains","BACKSLASH_ESCAPE","case_insensitive","aliases","returnEnd","subLanguage","excludeBegin","excludeEnd","UNDERSCORE_IDENT_RE","HASH_COMMENT_MODE","beginKeywords","keywords","literal","C_NUMBER_MODE"],"mappings":"qFAAAA,EAAOC,QAAU,SAASC,GACxB,IAGIC,EAAW,qBACXC,EAAM,CACRC,UAAW,OACXC,SAAU,CACR,CAAEC,MALU,WAKSJ,EAAU,KAC/B,CAAEI,MAAOC,YAAkBL,EAAU,MACrC,CAAEI,MAAOC,YAAkBL,EAAU,QAWrCM,EAAS,CACXJ,UAAW,SACXK,UAAW,EACXJ,SAAU,CACR,CAACC,MAAO,IAAKI,IAAK,KAClB,CAACJ,MAAO,IAAKI,IAAK,KAClB,CAACJ,MAAO,QAEVK,SAAU,CACRV,EAAKW,iBAhBgB,CACvBR,UAAW,oBACXC,SAAU,CACR,CAAEC,MAAO,KAAQI,IAAK,MACtB,CAAEJ,MAAO,KAAOI,IAAK,SAiBzB,MAAO,CACLG,kBAAkB,EAClBC,QAAS,CAAC,MAAO,OAAQ,QACzBH,SAAU,CACRR,EACA,CACEC,UAAW,OACXE,MAAO,UACPG,UAAW,IAEb,CACEL,UAAW,SACXE,MAAO,YACPS,WAAW,EACXJ,SAAUH,EAAOG,SAEjBD,IAAKP,EAAIE,SAAS,GAAGC,OAEvB,CACEA,MAAO,WAAYI,IAAK,UACxBM,YAAa,OACbC,cAAc,EACdC,YAAY,EACZT,UAAW,GAEb,CACEL,UAAW,OACXE,MAAO,IAAML,EAAKkB,qBAEpB,CACEf,UAAW,OACXE,MAAO,KAAOL,EAAKkB,qBAErB,CACEf,UAAW,OACXE,MAAO,IAAML,EAAKkB,oBAAsB,KAE1C,CACEf,UAAW,OACXE,MAAO,MAAQL,EAAKkB,oBAAsB,KAE5C,CACEf,UAAW,SACXE,MAAO,OACPG,UAAW,GAEbR,EAAKmB,kBACL,CACEC,cAlFS,yBAmFTC,SAAU,CAACC,QAnFF,2BAqFXtB,EAAKuB,cACLhB","file":"highlight/yaml.js?v=33ce49cae725cba2c42c","sourcesContent":["module.exports = function(hljs) {\n var LITERALS = 'true false yes no null';\n\n var keyPrefix = '^[ \\\\-]*';\n var keyName = '[a-zA-Z_][\\\\w\\\\-]*';\n var KEY = {\n className: 'attr',\n variants: [\n { begin: keyPrefix + keyName + \":\"},\n { begin: keyPrefix + '\"' + keyName + '\"' + \":\"},\n { begin: keyPrefix + \"'\" + keyName + \"'\" + \":\"}\n ]\n };\n\n var TEMPLATE_VARIABLES = {\n className: 'template-variable',\n variants: [\n { begin: '\\{\\{', end: '\\}\\}' }, // jinja templates Ansible\n { begin: '%\\{', end: '\\}' } // Ruby i18n\n ]\n };\n var STRING = {\n className: 'string',\n relevance: 0,\n variants: [\n {begin: /'/, end: /'/},\n {begin: /\"/, end: /\"/},\n {begin: /\\S+/}\n ],\n contains: [\n hljs.BACKSLASH_ESCAPE,\n TEMPLATE_VARIABLES\n ]\n };\n\n return {\n case_insensitive: true,\n aliases: ['yml', 'YAML', 'yaml'],\n contains: [\n KEY,\n {\n className: 'meta',\n begin: '^---\\s*$',\n relevance: 10\n },\n { // multi line string\n className: 'string',\n begin: '[\\\\|>] *$',\n returnEnd: true,\n contains: STRING.contains,\n // very simple termination: next hash key\n end: KEY.variants[0].begin\n },\n { // Ruby/Rails erb\n begin: '<%[%=-]?', end: '[%-]?%>',\n subLanguage: 'ruby',\n excludeBegin: true,\n excludeEnd: true,\n relevance: 0\n },\n { // local tags\n className: 'type',\n begin: '!' + hljs.UNDERSCORE_IDENT_RE,\n },\n { // data type\n className: 'type',\n begin: '!!' + hljs.UNDERSCORE_IDENT_RE,\n },\n { // fragment id &ref\n className: 'meta',\n begin: '&' + hljs.UNDERSCORE_IDENT_RE + '$',\n },\n { // fragment reference *ref\n className: 'meta',\n begin: '\\\\*' + hljs.UNDERSCORE_IDENT_RE + '$'\n },\n { // array listing\n className: 'bullet',\n begin: '^ *-',\n relevance: 0\n },\n hljs.HASH_COMMENT_MODE,\n {\n beginKeywords: LITERALS,\n keywords: {literal: LITERALS}\n },\n hljs.C_NUMBER_MODE,\n STRING\n ]\n };\n};"],"sourceRoot":""}
|