1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
(Prism.languages['linker-script'] = {
comment: {
pattern: /(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,
lookbehind: !0,
greedy: !0,
},
identifier: { pattern: /"[^"\r\n]*"/, greedy: !0 },
'location-counter': { pattern: /\B\.\B/, alias: 'important' },
section: { pattern: /(^|[^\w*])\.\w+\b/, lookbehind: !0, alias: 'keyword' },
function: /\b[A-Z][A-Z_]*(?=\s*\()/,
number: /\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,
operator: />>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,
punctuation: /[(){},;]/,
}),
(Prism.languages.ld = Prism.languages['linker-script']);
|