Skip to content

Instantly share code, notes, and snippets.

@Runemoro
Last active May 28, 2018 01:17
Show Gist options
  • Save Runemoro/7d48bbf3081967d0ef6426a12813063a to your computer and use it in GitHub Desktop.
Save Runemoro/7d48bbf3081967d0ef6426a12813063a to your computer and use it in GitHub Desktop.
hljs.registerLanguage('mccrash', (hljs)=>({
cI: true,
c: [{
cN: "section",
v: [{
b: "^-{1,6} ",
e: " -{1,6}$"
}, {
b: "^.+?\\n[=-]{2,}$"
}]
}, {
cN: "bullet",
v: [{
b: "^( |\\t)?[a-zA-Z][a-zA-Z() ]*: ",
e: ""
}]
}, {
cN: "comment",
v: [{
b: "//",
e: "$"
}]
}]
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment