0

update to higlight.js 8.4

This commit is contained in:
jomo
2015-01-25 16:00:01 +01:00
parent 63ae856c40
commit 47f60d0729
157 changed files with 4463 additions and 727 deletions

View File

@@ -1,5 +1,6 @@
/*
Language: Python
Category: common
*/
function(hljs) {
@@ -51,12 +52,6 @@ function(hljs) {
begin: /\(/, end: /\)/,
contains: ['self', PROMPT, NUMBER, STRING]
};
var FUNC_CLASS_PROTO = {
end: /:/,
illegal: /[${=;\n]/,
contains: [hljs.UNDERSCORE_TITLE_MODE, PARAMS]
};
return {
aliases: ['py', 'gyp'],
keywords: {
@@ -73,8 +68,15 @@ function(hljs) {
NUMBER,
STRING,
hljs.HASH_COMMENT_MODE,
hljs.inherit(FUNC_CLASS_PROTO, {className: 'function', beginKeywords: 'def', relevance: 10}),
hljs.inherit(FUNC_CLASS_PROTO, {className: 'class', beginKeywords: 'class'}),
{
variants: [
{className: 'function', beginKeywords: 'def', relevance: 10},
{className: 'class', beginKeywords: 'class'}
],
end: /:/,
illegal: /[${=;\n]/,
contains: [hljs.UNDERSCORE_TITLE_MODE, PARAMS]
},
{
className: 'decorator',
begin: /@/, end: /$/