08-27-周三_17-09-29
This commit is contained in:
44
node_modules/highlight.js/lib/languages/makefile.js
generated
vendored
Normal file
44
node_modules/highlight.js/lib/languages/makefile.js
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
module.exports = function(hljs) {
|
||||
var VARIABLE = {
|
||||
className: 'variable',
|
||||
begin: /\$\(/, end: /\)/,
|
||||
contains: [hljs.BACKSLASH_ESCAPE]
|
||||
};
|
||||
return {
|
||||
aliases: ['mk', 'mak'],
|
||||
contains: [
|
||||
hljs.HASH_COMMENT_MODE,
|
||||
{
|
||||
begin: /^\w+\s*\W*=/, returnBegin: true,
|
||||
relevance: 0,
|
||||
starts: {
|
||||
end: /\s*\W*=/, excludeEnd: true,
|
||||
starts: {
|
||||
end: /$/,
|
||||
relevance: 0,
|
||||
contains: [
|
||||
VARIABLE
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
className: 'section',
|
||||
begin: /^[\w]+:\s*$/
|
||||
},
|
||||
{
|
||||
className: 'meta',
|
||||
begin: /^\.PHONY:/, end: /$/,
|
||||
keywords: {'meta-keyword': '.PHONY'}, lexemes: /[\.\w]+/
|
||||
},
|
||||
{
|
||||
begin: /^\t+/, end: /$/,
|
||||
relevance: 0,
|
||||
contains: [
|
||||
hljs.QUOTE_STRING_MODE,
|
||||
VARIABLE
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user