ISO-Share/node_modules/prismjs/components/prism-linker-script.js

31 lines
606 B
JavaScript
Raw Normal View History

2024-11-26 21:16:11 +01:00
Prism.languages['linker-script'] = {
'comment': {
pattern: /(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,
lookbehind: true,
greedy: true
},
'identifier': {
pattern: /"[^"\r\n]*"/,
greedy: true
},
'location-counter': {
pattern: /\B\.\B/,
alias: 'important'
},
'section': {
pattern: /(^|[^\w*])\.\w+\b/,
lookbehind: true,
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'];