зеркало из https://github.com/nextcloud/text.git
1 строка
3.6 KiB
Plaintext
1 строка
3.6 KiB
Plaintext
{"version":3,"file":"crmsh-16VSh_77.chunk.mjs","sources":["../node_modules/highlight.js/lib/languages/crmsh.js"],"sourcesContent":["/*\nLanguage: crmsh\nAuthor: Kristoffer Gronlund <kgronlund@suse.com>\nWebsite: http://crmsh.github.io\nDescription: Syntax Highlighting for the crmsh DSL\nCategory: config\n*/\n\n/** @type LanguageFn */\nfunction crmsh(hljs) {\n const RESOURCES = 'primitive rsc_template';\n const COMMANDS = 'group clone ms master location colocation order fencing_topology '\n + 'rsc_ticket acl_target acl_group user role '\n + 'tag xml';\n const PROPERTY_SETS = 'property rsc_defaults op_defaults';\n const KEYWORDS = 'params meta operations op rule attributes utilization';\n const OPERATORS = 'read write deny defined not_defined in_range date spec in '\n + 'ref reference attribute type xpath version and or lt gt tag '\n + 'lte gte eq ne \\\\';\n const TYPES = 'number string';\n const LITERALS = 'Master Started Slave Stopped start promote demote stop monitor true false';\n\n return {\n name: 'crmsh',\n aliases: [\n 'crm',\n 'pcmk'\n ],\n case_insensitive: true,\n keywords: {\n keyword: KEYWORDS + ' ' + OPERATORS + ' ' + TYPES,\n literal: LITERALS\n },\n contains: [\n hljs.HASH_COMMENT_MODE,\n {\n beginKeywords: 'node',\n starts: {\n end: '\\\\s*([\\\\w_-]+:)?',\n starts: {\n className: 'title',\n end: '\\\\s*[\\\\$\\\\w_][\\\\w_-]*'\n }\n }\n },\n {\n beginKeywords: RESOURCES,\n starts: {\n className: 'title',\n end: '\\\\s*[\\\\$\\\\w_][\\\\w_-]*',\n starts: { end: '\\\\s*@?[\\\\w_][\\\\w_\\\\.:-]*' }\n }\n },\n {\n begin: '\\\\b(' + COMMANDS.split(' ').join('|') + ')\\\\s+',\n keywords: COMMANDS,\n starts: {\n className: 'title',\n end: '[\\\\$\\\\w_][\\\\w_-]*'\n }\n },\n {\n beginKeywords: PROPERTY_SETS,\n starts: {\n className: 'title',\n end: '\\\\s*([\\\\w_-]+:)?'\n }\n },\n hljs.QUOTE_STRING_MODE,\n {\n className: 'meta',\n begin: '(ocf|systemd|service|lsb):[\\\\w_:-]+',\n relevance: 0\n },\n {\n className: 'number',\n begin: '\\\\b\\\\d+(\\\\.\\\\d+)?(ms|s|h|m)?',\n relevance: 0\n },\n {\n className: 'literal',\n begin: '[-]?(infinity|inf)',\n relevance: 0\n },\n {\n className: 'attr',\n begin: /([A-Za-z$_#][\\w_-]+)=/,\n relevance: 0\n },\n {\n className: 'tag',\n begin: '</?',\n end: '/?>',\n relevance: 0\n }\n ]\n };\n}\n\nmodule.exports = crmsh;\n"],"names":["crmsh","hljs","RESOURCES","COMMANDS","crmsh_1"],"mappings":";4YASA,SAASA,EAAMC,EAAM,CACnB,MAAMC,EAAY,yBACZC,EAAW,qHAWjB,MAAO,CACL,KAAM,QACN,QAAS,CACP,MACA,MACD,EACD,iBAAkB,GAClB,SAAU,CACR,QAfa,6MAgBb,QAXa,2EAYd,EACD,SAAU,CACRF,EAAK,kBACL,CACE,cAAe,OACf,OAAQ,CACN,IAAK,mBACL,OAAQ,CACN,UAAW,QACX,IAAK,uBACN,CACF,CACF,EACD,CACE,cAAeC,EACf,OAAQ,CACN,UAAW,QACX,IAAK,wBACL,OAAQ,CAAE,IAAK,0BAA4B,CAC5C,CACF,EACD,CACE,MAAO,OAASC,EAAS,MAAM,GAAG,EAAE,KAAK,GAAG,EAAI,QAChD,SAAUA,EACV,OAAQ,CACN,UAAW,QACX,IAAK,mBACN,CACF,EACD,CACE,cAhDgB,oCAiDhB,OAAQ,CACN,UAAW,QACX,IAAK,kBACN,CACF,EACDF,EAAK,kBACL,CACE,UAAW,OACX,MAAO,sCACP,UAAW,CACZ,EACD,CACE,UAAW,SACX,MAAO,+BACP,UAAW,CACZ,EACD,CACE,UAAW,UACX,MAAO,qBACP,UAAW,CACZ,EACD,CACE,UAAW,OACX,MAAO,wBACP,UAAW,CACZ,EACD,CACE,UAAW,MACX,MAAO,MACP,IAAK,MACL,UAAW,CACZ,CACF,CACL,CACA,CAEA,IAAAG,EAAiBJ","x_google_ignoreList":[0]} |