text/js/highlight/nginx.js.map

1 строка
4.5 KiB
Plaintext

{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/nginx.js"],"names":["module","exports","hljs","VAR","className","variants","begin","end","UNDERSCORE_IDENT_RE","DEFAULT","endsWithParent","keywords","$pattern","literal","relevance","illegal","contains","HASH_COMMENT_MODE","BACKSLASH_ESCAPE","excludeEnd","returnEnd","name","aliases","returnBegin","starts"],"mappings":"oGA2IAA,EAAOC,QAnIP,SAAeC,GACb,IAAMC,EAAM,CACVC,UAAW,WACXC,SAAU,CACR,CACEC,MAAO,SAET,CACEA,MAAO,OACPC,IAAK,MAEP,CACED,MAAO,OAASJ,EAAKM,uBAIrBC,EAAU,CACdC,gBAAgB,EAChBC,SAAU,CACRC,SAAU,WACVC,QACE,kJAGJC,UAAW,EACXC,QAAS,KACTC,SAAU,CACRd,EAAKe,kBACL,CACEb,UAAW,SACXY,SAAU,CACRd,EAAKgB,iBACLf,GAEFE,SAAU,CACR,CACEC,MAAO,IACPC,IAAK,KAEP,CACED,MAAO,IACPC,IAAK,OAKX,CACED,MAAO,aACPC,IAAK,MACLG,gBAAgB,EAChBS,YAAY,EACZH,SAAU,CAAEb,IAEd,CACEC,UAAW,SACXY,SAAU,CACRd,EAAKgB,iBACLf,GAEFE,SAAU,CACR,CACEC,MAAO,SACPC,IAAK,YACLa,WAAW,GAGb,CACEd,MAAO,YACPC,IAAK,YACLa,WAAW,GAGb,CACEd,MAAO,sBAGT,CACEA,MAAO,wBAKb,CACEF,UAAW,SACXE,MAAO,+DAGT,CACEF,UAAW,SACXE,MAAO,4BACPQ,UAAW,GAEbX,IAIJ,MAAO,CACLkB,KAAM,eACNC,QAAS,CAAE,aACXN,SAAU,CACRd,EAAKe,kBACL,CACEX,MAAOJ,EAAKM,oBAAsB,UAClCe,aAAa,EACbhB,IAAK,KACLS,SAAU,CACR,CACEZ,UAAW,UACXE,MAAOJ,EAAKM,sBAGhBM,UAAW,GAEb,CACER,MAAOJ,EAAKM,oBAAsB,MAClCD,IAAK,QACLgB,aAAa,EACbP,SAAU,CACR,CACEZ,UAAW,YACXE,MAAOJ,EAAKM,oBACZgB,OAAQf,IAGZK,UAAW,IAGfC,QAAS","file":"highlight/nginx.js?v=d0efa7eb1a28a7988616","sourcesContent":["/*\nLanguage: Nginx config\nAuthor: Peter Leonov <gojpeg@yandex.ru>\nContributors: Ivan Sagalaev <maniac@softwaremaniacs.org>\nCategory: common, config\nWebsite: https://www.nginx.com\n*/\n\nfunction nginx(hljs) {\n const VAR = {\n className: 'variable',\n variants: [\n {\n begin: /\\$\\d+/\n },\n {\n begin: /\\$\\{/,\n end: /\\}/\n },\n {\n begin: /[$@]/ + hljs.UNDERSCORE_IDENT_RE\n }\n ]\n };\n const DEFAULT = {\n endsWithParent: true,\n keywords: {\n $pattern: '[a-z/_]+',\n literal:\n 'on off yes no true false none blocked debug info notice warn error crit ' +\n 'select break last permanent redirect kqueue rtsig epoll poll /dev/poll'\n },\n relevance: 0,\n illegal: '=>',\n contains: [\n hljs.HASH_COMMENT_MODE,\n {\n className: 'string',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n VAR\n ],\n variants: [\n {\n begin: /\"/,\n end: /\"/\n },\n {\n begin: /'/,\n end: /'/\n }\n ]\n },\n // this swallows entire URLs to avoid detecting numbers within\n {\n begin: '([a-z]+):/',\n end: '\\\\s',\n endsWithParent: true,\n excludeEnd: true,\n contains: [ VAR ]\n },\n {\n className: 'regexp',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n VAR\n ],\n variants: [\n {\n begin: \"\\\\s\\\\^\",\n end: \"\\\\s|\\\\{|;\",\n returnEnd: true\n },\n // regexp locations (~, ~*)\n {\n begin: \"~\\\\*?\\\\s+\",\n end: \"\\\\s|\\\\{|;\",\n returnEnd: true\n },\n // *.example.com\n {\n begin: \"\\\\*(\\\\.[a-z\\\\-]+)+\"\n },\n // sub.example.*\n {\n begin: \"([a-z\\\\-]+\\\\.)+\\\\*\"\n }\n ]\n },\n // IP\n {\n className: 'number',\n begin: '\\\\b\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}(:\\\\d{1,5})?\\\\b'\n },\n // units\n {\n className: 'number',\n begin: '\\\\b\\\\d+[kKmMgGdshdwy]*\\\\b',\n relevance: 0\n },\n VAR\n ]\n };\n\n return {\n name: 'Nginx config',\n aliases: [ 'nginxconf' ],\n contains: [\n hljs.HASH_COMMENT_MODE,\n {\n begin: hljs.UNDERSCORE_IDENT_RE + '\\\\s+\\\\{',\n returnBegin: true,\n end: /\\{/,\n contains: [\n {\n className: 'section',\n begin: hljs.UNDERSCORE_IDENT_RE\n }\n ],\n relevance: 0\n },\n {\n begin: hljs.UNDERSCORE_IDENT_RE + '\\\\s',\n end: ';|\\\\{',\n returnBegin: true,\n contains: [\n {\n className: 'attribute',\n begin: hljs.UNDERSCORE_IDENT_RE,\n starts: DEFAULT\n }\n ],\n relevance: 0\n }\n ],\n illegal: '[^\\\\s\\\\}]'\n };\n}\n\nmodule.exports = nginx;\n"],"sourceRoot":""}