text/js/highlight/roboconf.js.map

1 строка
2.5 KiB
Plaintext

{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/roboconf.js"],"names":["module","exports","hljs","PROPERTY","className","begin","end","excludeEnd","starts","relevance","contains","name","aliases","case_insensitive","keywords","HASH_COMMENT_MODE","illegal"],"mappings":"oGAiFAA,EAAOC,QAzEP,SAAkBC,GAChB,IAEMC,EAAW,CACfC,UAAW,YACXC,MAAO,cACPC,IAAK,OACLC,YAAY,EACZC,OAAQ,CACNF,IAAK,IACLG,UAAW,EACXC,SAAU,CACR,CACEN,UAAW,WACXC,MAAO,iBAET,CACED,UAAW,UACXC,MAAO,mBAMf,MAAO,CACLM,KAAM,WACNC,QAAS,CACP,QACA,aAEFC,kBAAkB,EAClBC,SAAU,SACVJ,SAAU,CAER,CACEL,MAAO,+BACPC,IAAK,KACLQ,SAAU,QACVJ,SAAU,CACRP,EACAD,EAAKa,oBAKT,CACEV,MAAO,yCACPC,IAAK,KACLQ,SAAU,+DACVE,QAAS,KACTN,SAAU,CACR,OACAP,EACAD,EAAKa,oBAKT,CACEV,MAAO,yBACPC,IAAK,KACLI,SAAU,CACRP,EACAD,EAAKa,oBAKTb,EAAKa","file":"highlight/roboconf.js?v=ed4845b343abfd545cac","sourcesContent":["/*\nLanguage: Roboconf\nAuthor: Vincent Zurczak <vzurczak@linagora.com>\nDescription: Syntax highlighting for Roboconf's DSL\nWebsite: http://roboconf.net\nCategory: config\n*/\n\nfunction roboconf(hljs) {\n const IDENTIFIER = '[a-zA-Z-_][^\\\\n{]+\\\\{';\n\n const PROPERTY = {\n className: 'attribute',\n begin: /[a-zA-Z-_]+/,\n end: /\\s*:/,\n excludeEnd: true,\n starts: {\n end: ';',\n relevance: 0,\n contains: [\n {\n className: 'variable',\n begin: /\\.[a-zA-Z-_]+/\n },\n {\n className: 'keyword',\n begin: /\\(optional\\)/\n }\n ]\n }\n };\n\n return {\n name: 'Roboconf',\n aliases: [\n 'graph',\n 'instances'\n ],\n case_insensitive: true,\n keywords: 'import',\n contains: [\n // Facet sections\n {\n begin: '^facet ' + IDENTIFIER,\n end: /\\}/,\n keywords: 'facet',\n contains: [\n PROPERTY,\n hljs.HASH_COMMENT_MODE\n ]\n },\n\n // Instance sections\n {\n begin: '^\\\\s*instance of ' + IDENTIFIER,\n end: /\\}/,\n keywords: 'name count channels instance-data instance-state instance of',\n illegal: /\\S/,\n contains: [\n 'self',\n PROPERTY,\n hljs.HASH_COMMENT_MODE\n ]\n },\n\n // Component sections\n {\n begin: '^' + IDENTIFIER,\n end: /\\}/,\n contains: [\n PROPERTY,\n hljs.HASH_COMMENT_MODE\n ]\n },\n\n // Comments\n hljs.HASH_COMMENT_MODE\n ]\n };\n}\n\nmodule.exports = roboconf;\n"],"sourceRoot":""}