main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
829 bytes
|
Line | |
---|
1 | 'use strict'
|
---|
2 |
|
---|
3 | module.exports = llvm
|
---|
4 | llvm.displayName = 'llvm'
|
---|
5 | llvm.aliases = []
|
---|
6 | function llvm(Prism) {
|
---|
7 | ;(function (Prism) {
|
---|
8 | Prism.languages.llvm = {
|
---|
9 | comment: /;.*/,
|
---|
10 | string: {
|
---|
11 | pattern: /"[^"]*"/,
|
---|
12 | greedy: true
|
---|
13 | },
|
---|
14 | boolean: /\b(?:false|true)\b/,
|
---|
15 | variable: /[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,
|
---|
16 | label: /(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,
|
---|
17 | type: {
|
---|
18 | pattern:
|
---|
19 | /\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,
|
---|
20 | alias: 'class-name'
|
---|
21 | },
|
---|
22 | keyword: /\b[a-z_][a-z_0-9]*\b/,
|
---|
23 | number:
|
---|
24 | /[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,
|
---|
25 | punctuation: /[{}[\];(),.!*=<>]/
|
---|
26 | }
|
---|
27 | })(Prism)
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.