haml.min.js 1.1 KB

123456789101112131415161718
  1. /*! `haml` grammar compiled for Highlight.js 11.7.0 */
  2. var hljsGrammar=(()=>{"use strict";return e=>({name:"HAML",case_insensitive:!0,
  3. contains:[{className:"meta",
  4. begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",
  5. relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{
  6. begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,
  7. excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{
  8. className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"
  9. },{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,
  10. contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,
  11. contains:[{className:"attr",begin:":\\w+"
  12. },e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{
  13. begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",
  14. end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",
  15. begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",
  16. relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,
  17. subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]})})()
  18. ;export default hljsGrammar;