The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
526 B

Prism.languages.meson= {
'triple-quoted-string': {
'pattern': /'''[\s\S]*?'''/,
'alias': 'string'
},
'comment': /#.*/,
'string': /'(?:\\'|[^'])*'/,
'number': /\b\d+(?:\.\d+)?\b/,
'keyword': /\b(?:if|else|elif|endif|foreach|endforeach)\b/,
'function': /(?=\.|\b)[a-zA-Z_]+\s*(?=\()/,
'boolean': /\b(?:true|false)\b/,
'builtin': /\b(?:meson|host_machine|target_machine|build_machine)(?=\.)/,
'operator': /(?:[<>=*+\-/!]?=|%|\/|\*|-|\+|\b(?:or|and|not)\b)/,
'punctuation': /[(),[\]]/
// TODO: Handle ternary ?:
};