UNPKG

586 BJavaScriptView Raw
1hljs.registerLanguage("properties",(()=>{"use strict";return e=>{
2const t="[ \\t\\f]*",n="([^\\\\:= \\t\\f\\n]|\\\\.)+";return{name:".properties",
3disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,
4contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{
5begin:n+"[ \\t\\f]*[:=][ \\t\\f]*"},{begin:n+"[ \\t\\f]+"}],contains:[{
6className:"attr",begin:n,endsParent:!0}],starts:{
7end:"([ \\t\\f]*[:=][ \\t\\f]*|[ \\t\\f]+)",relevance:0,starts:{
8className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{
9begin:"\\\\\\n"}]}}},{className:"attr",begin:n+t+"$"}]}}})());
\No newline at end of file