highlight.js
Advanced tools
Comparing version 8.9.0 to 8.9.1
@@ -141,2 +141,2 @@ var hljs = require('./highlight'); | ||
module.exports = hljs; | ||
module.exports = hljs; |
@@ -8,6 +8,3 @@ module.exports = function(hljs) { | ||
'instanceof with throw case default try this switch continue typeof delete ' + | ||
'let yield const export super debugger as async await ' + | ||
// ECMAScript 6 modules import | ||
'import from as' | ||
, | ||
'let yield const export super debugger as async await', | ||
literal: | ||
@@ -94,2 +91,11 @@ 'true false null undefined NaN Infinity', | ||
}, | ||
// ECMAScript 6 modules import | ||
{ | ||
beginKeywords: 'import', end: '[;$]', | ||
keywords: 'import from as', | ||
contains: [ | ||
hljs.APOS_STRING_MODE, | ||
hljs.QUOTE_STRING_MODE | ||
] | ||
}, | ||
{ // ES6 class | ||
@@ -103,6 +109,2 @@ className: 'class', | ||
] | ||
}, | ||
{ | ||
beginKeywords: 'constructor', end: /\{/, excludeEnd: true, | ||
relevance: 10 | ||
} | ||
@@ -109,0 +111,0 @@ ], |
@@ -33,17 +33,4 @@ module.exports = function(hljs) { | ||
beginKeywords: 'class object trait type', | ||
end: /[:={\[\n;]/, | ||
excludeEnd: true, | ||
contains: [ | ||
{ | ||
beginKeywords: 'extends with', | ||
relevance: 10 | ||
}, | ||
{ | ||
'className': 'params', | ||
'begin': /\(/, | ||
'end': /\)/, | ||
relevance: 0 | ||
}, | ||
NAME | ||
] | ||
end: /[:={\[(\n;]/, | ||
contains: [{className: 'keyword', beginKeywords: 'extends with', relevance: 10}, NAME] | ||
}; | ||
@@ -50,0 +37,0 @@ |
@@ -31,13 +31,2 @@ module.exports = function(hljs) { | ||
hljs.QUOTE_STRING_MODE, | ||
{ // template string | ||
className: 'string', | ||
begin: '`', end: '`', | ||
contains: [ | ||
hljs.BACKSLASH_ESCAPE, | ||
{ | ||
className: 'subst', | ||
begin: '\\$\\{', end: '\\}' | ||
} | ||
] | ||
}, | ||
hljs.C_LINE_COMMENT_MODE, | ||
@@ -88,2 +77,3 @@ hljs.C_BLOCK_COMMENT_MODE, | ||
{ | ||
className: 'constructor', | ||
beginKeywords: 'constructor', end: /\{/, excludeEnd: true, | ||
@@ -90,0 +80,0 @@ relevance: 10 |
@@ -9,3 +9,3 @@ { | ||
"homepage": "https://highlightjs.org/", | ||
"version": "8.9.0", | ||
"version": "8.9.1", | ||
"author": { | ||
@@ -12,0 +12,0 @@ "name": "Ivan Sagalaev", |
900772
20090
100
0
0
0
1