crmsh.min.js 1.4 KB

12345678910111213141516171819
  1. /*! `crmsh` grammar compiled for Highlight.js 11.7.0 */
  2. (()=>{var e=(()=>{"use strict";return e=>{
  3. const t="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml"
  4. ;return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{
  5. keyword:"params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string",
  6. literal:"Master Started Slave Stopped start promote demote stop monitor true false"
  7. },contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{
  8. end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}
  9. },{beginKeywords:"primitive rsc_template",starts:{className:"title",
  10. end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{
  11. begin:"\\b("+t.split(" ").join("|")+")\\s+",keywords:t,starts:{
  12. className:"title",end:"[\\$\\w_][\\w_-]*"}},{
  13. beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",
  14. end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",
  15. begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",
  16. begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",
  17. begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",
  18. begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",
  19. end:"/?>",relevance:0}]}}})();hljs.registerLanguage("crmsh",e)})();