Created
December 21, 2012 23:34
-
-
Save lluchs/4356587 to your computer and use it in GitHub Desktop.
Prism highlighting definition for Clonk maps (http://www.clonk.de/docs/en/sdk/scenario/MapCreatorS2.html)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prism.languages.map = { | |
'comment': { | |
pattern: /(^|[^\\])(\/\*[\w\W]*?\*\/|\/\/.*?(\r?\n|$))/g, | |
lookbehind: true | |
}, | |
'keyword': /\b(map|overlay|point)\b/g, | |
'property': /\b(mat|tex|x|y|wdt|hgt|algo|zoomX|zoomY|ox|oy|a|b|turbulence|rotate|invert|seed|loosebounds|mask|grp|sub|lambda)\b/g, | |
'attr-name': /\b(solid|random|checker|bozo|sin|boxes|rndchecker|lines|border|mandel|rndall|script|poly)\b/g, | |
'number': /\b-?\d+(%|px\b|\b)/g, | |
'operator': /&|\||\^|=/g, | |
'ignore': /&(lt|gt|amp);/gi, | |
'punctuation': /[{}[\];(),.:]/g | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment