2023-06-28 15:40:30 +08:00
|
|
|
/*! `haml` grammar compiled for Highlight.js 11.8.0 */
|
2022-09-20 23:43:28 +08:00
|
|
|
(()=>{var e=(()=>{"use strict";return e=>({name:"HAML",case_insensitive:!0,
|
|
|
|
contains:[{className:"meta",
|
2021-03-11 00:35:00 +08:00
|
|
|
begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",
|
2022-09-20 23:43:28 +08:00
|
|
|
relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{
|
|
|
|
begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,
|
|
|
|
excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{
|
|
|
|
className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"
|
|
|
|
},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,
|
|
|
|
contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,
|
|
|
|
contains:[{className:"attr",begin:":\\w+"
|
|
|
|
},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{
|
|
|
|
begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",
|
2021-03-11 00:35:00 +08:00
|
|
|
end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",
|
|
|
|
begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",
|
2022-09-20 23:43:28 +08:00
|
|
|
relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,
|
|
|
|
subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]})})()
|
|
|
|
;hljs.registerLanguage("haml",e)})();
|