highlight.js
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,3 +5,3 @@ { | ||
"description": "A node clone of highlight.js syntax highlighter library", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -518,4 +518,3 @@ /* | ||
block.className = class_name; | ||
block.dataset = {}; | ||
block.dataset.result = { | ||
block.result = { | ||
language: language, | ||
@@ -526,3 +525,3 @@ kw: result.keyword_count, | ||
if (result.second_best) { | ||
block.dataset.second_best = { | ||
block.second_best = { | ||
language: result.second_best.language, | ||
@@ -529,0 +528,0 @@ kw: result.second_best.keyword_count, |
@@ -37,3 +37,3 @@ /* | ||
begin: '\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<', end: '>', | ||
keywords: CPP_KEYWORDS['built_in'], | ||
keywords: CPP_KEYWORDS, | ||
relevance: 10 | ||
@@ -40,0 +40,0 @@ }; |
@@ -9,3 +9,3 @@ /* | ||
className: 'label', | ||
begin: '\\b[A-Z][\\w\\\']*', | ||
begin: '\\b[A-Z][\\w\']*', | ||
relevance: 0 | ||
@@ -17,4 +17,4 @@ }; | ||
contains: [ | ||
{className: 'label', begin: '\\b[A-Z][\\w\\(\\)\\.\\\']*'}, | ||
{className: 'title', begin: '[_a-z][\\w\\\']*'} | ||
{className: 'label', begin: '\\b[A-Z][\\w\\(\\)\\.\']*'}, | ||
{className: 'title', begin: '[_a-z][\\w\']*'} | ||
] | ||
@@ -26,4 +26,8 @@ }; | ||
keywords: { | ||
'keyword': {'let': 1,'in': 1,'if': 1,'then': 1,'else': 1,'case': 1,'of': 1,'where': 1,'do': 1,'module': 1,'import': 1, 'hiding': 1,'qualified': 1,'type': 1,'data': 1,'newtype': 1,'deriving': 1,'class': 1,'instance': 1,'null': 1,'not': 1,'as': 1}, | ||
'built_in': {'Bool': 1,'True': 1,'False': 1,'Int': 1,'Char': 1,'Maybe': 1,'Nothing': 1,'String': 1} | ||
'keyword': { | ||
'let': 1, 'in': 1, 'if': 1, 'then': 1, 'else': 1, 'case': 1, 'of': 1, | ||
'where': 1, 'do': 1, 'module': 1, 'import': 1, 'hiding': 1, | ||
'qualified': 1, 'type': 1, 'data': 1, 'newtype': 1, 'deriving': 1, | ||
'class': 1, 'instance': 1, 'null': 1, 'not': 1, 'as': 1 | ||
} | ||
}, | ||
@@ -39,3 +43,8 @@ contains: [ | ||
}, | ||
hljs.APOS_STRING_MODE, | ||
{ | ||
className: 'string', | ||
begin: '\\s+\'', end: '\'', | ||
contains: [hljs.BACKSLASH_ESCAPE], | ||
relevance: 0 | ||
}, | ||
hljs.QUOTE_STRING_MODE, | ||
@@ -67,3 +76,3 @@ { | ||
{ | ||
className: 'title', begin: '^[_a-z][\\w\\\']*' | ||
className: 'title', begin: '^[_a-z][\\w\']*' | ||
} | ||
@@ -70,0 +79,0 @@ ] |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9613