Skip to content

Commit

Permalink
Merge pull request #50 from scrivo/feature/9.15.10-support
Browse files Browse the repository at this point in the history
highlight.js 9.15.10 support
  • Loading branch information
allejo authored Aug 27, 2019
2 parents fdc7a51 + ac08219 commit 9ad3adb
Show file tree
Hide file tree
Showing 24 changed files with 172 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Highlight/languages/css.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"case_insensitive":true,"illegal":"[=\\/|'\\$]","contains":[{"className":"comment","begin":"/\\*","end":"\\*/","contains":[{"begin":"\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b"},{"className":"doctag","begin":"(?:TODO|FIXME|NOTE|BUG|XXX):","relevance":0}]},{"className":"selector-id","begin":"#[A-Za-z0-9_-]+"},{"className":"selector-class","begin":"\\.[A-Za-z0-9_-]+"},{"className":"selector-attr","begin":"\\[","end":"\\]","illegal":"$"},{"className":"selector-pseudo","begin":":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\"'.]+"},{"begin":"@(font-face|page)","lexemes":"[a-z-]+","keywords":"font-face page"},{"begin":"@","end":"[{;]","illegal":":","contains":[{"className":"keyword","begin":"\\w+"},{"begin":"\\s","endsWithParent":true,"excludeEnd":true,"relevance":0,"contains":[{"className":"string","begin":"'","end":"'","illegal":"\\n","contains":[{"begin":"\\\\[\\s\\S]","relevance":0}]},{"className":"string","begin":"\"","end":"\"","illegal":"\\n","contains":[{"$ref":"#contains.6.contains.1.contains.0.contains.0"}]},{"className":"number","begin":"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?","relevance":0}]}]},{"className":"selector-tag","begin":"[a-zA-Z-][a-zA-Z0-9_-]*","relevance":0},{"begin":"{","end":"}","illegal":"\\S","contains":[{"$ref":"#contains.0"},{"begin":"[A-Z\\_\\.\\-]+\\s*:","returnBegin":true,"end":";","endsWithParent":true,"contains":[{"className":"attribute","begin":"\\S","end":":","excludeEnd":true,"starts":{"endsWithParent":true,"excludeEnd":true,"contains":[{"begin":"[\\w-]+\\(","returnBegin":true,"contains":[{"className":"built_in","begin":"[\\w-]+"},{"begin":"\\(","end":"\\)","contains":[{"$ref":"#contains.6.contains.1.contains.0"},{"$ref":"#contains.6.contains.1.contains.1"}]}]},{"$ref":"#contains.6.contains.1.contains.2"},{"$ref":"#contains.6.contains.1.contains.1"},{"$ref":"#contains.6.contains.1.contains.0"},{"$ref":"#contains.0"},{"className":"number","begin":"#[0-9A-Fa-f]+"},{"className":"meta","begin":"!important"}]}}]}]}]}
{"case_insensitive":true,"illegal":"[=\\/|'\\$]","contains":[{"className":"comment","begin":"/\\*","end":"\\*/","contains":[{"begin":"\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b"},{"className":"doctag","begin":"(?:TODO|FIXME|NOTE|BUG|XXX):","relevance":0}]},{"className":"selector-id","begin":"#[A-Za-z0-9_-]+"},{"className":"selector-class","begin":"\\.[A-Za-z0-9_-]+"},{"className":"selector-attr","begin":"\\[","end":"\\]","illegal":"$"},{"className":"selector-pseudo","begin":":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\"'.]+"},{"begin":"@(font-face|page)","lexemes":"[a-z-]+","keywords":"font-face page"},{"begin":"@","end":"[{;]","illegal":":","contains":[{"className":"keyword","begin":"\\w+"},{"begin":"\\s","endsWithParent":true,"excludeEnd":true,"relevance":0,"contains":[{"className":"string","begin":"'","end":"'","illegal":"\\n","contains":[{"begin":"\\\\[\\s\\S]","relevance":0}]},{"className":"string","begin":"\"","end":"\"","illegal":"\\n","contains":[{"$ref":"#contains.6.contains.1.contains.0.contains.0"}]},{"className":"number","begin":"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?","relevance":0}]}]},{"className":"selector-tag","begin":"[a-zA-Z-][a-zA-Z0-9_-]*","relevance":0},{"begin":"{","end":"}","illegal":"\\S","contains":[{"$ref":"#contains.0"},{"begin":"(?:[A-Z\\_\\.\\-]+|--[a-zA-Z0-9_-]+)\\s*:","returnBegin":true,"end":";","endsWithParent":true,"contains":[{"className":"attribute","begin":"\\S","end":":","excludeEnd":true,"starts":{"endsWithParent":true,"excludeEnd":true,"contains":[{"begin":"[\\w-]+\\(","returnBegin":true,"contains":[{"className":"built_in","begin":"[\\w-]+"},{"begin":"\\(","end":"\\)","contains":[{"$ref":"#contains.6.contains.1.contains.0"},{"$ref":"#contains.6.contains.1.contains.1"}]}]},{"$ref":"#contains.6.contains.1.contains.2"},{"$ref":"#contains.6.contains.1.contains.1"},{"$ref":"#contains.6.contains.1.contains.0"},{"$ref":"#contains.0"},{"className":"number","begin":"#[0-9A-Fa-f]+"},{"className":"meta","begin":"!important"}]}}]}]}]}
2 changes: 1 addition & 1 deletion Highlight/languages/isbl.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Highlight/languages/javascript.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"aliases":["js","jsx"],"keywords":{"keyword":"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as","literal":"true false null undefined NaN Infinity","built_in":"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},"contains":[{"className":"meta","relevance":10,"begin":"^\\s*['\"]use (strict|asm)['\"]"},{"className":"meta","begin":"^#!","end":"$"},{"className":"string","begin":"'","end":"'","illegal":"\\n","contains":[{"begin":"\\\\[\\s\\S]","relevance":0}]},{"className":"string","begin":"\"","end":"\"","illegal":"\\n","contains":[{"$ref":"#contains.2.contains.0"}]},{"className":"string","begin":"`","end":"`","contains":[{"$ref":"#contains.2.contains.0"},{"className":"subst","begin":"\\$\\{","end":"\\}","keywords":{"$ref":"#keywords"},"contains":[{"$ref":"#contains.2"},{"$ref":"#contains.3"},{"$ref":"#contains.4"},{"className":"number","variants":[{"begin":"\\b(0[bB][01]+)"},{"begin":"\\b(0[oO][0-7]+)"},{"begin":"(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)"}],"relevance":0},{"className":"regexp","begin":"\\/","end":"\\/[gimuy]*","illegal":"\\n","contains":[{"$ref":"#contains.2.contains.0"},{"begin":"\\[","end":"\\]","relevance":0,"contains":[{"$ref":"#contains.2.contains.0"}]}]}]}]},{"className":"comment","begin":"//","end":"$","contains":[{"begin":"\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b"},{"className":"doctag","begin":"(?:TODO|FIXME|NOTE|BUG|XXX):","relevance":0}]},{"className":"comment","begin":"/\\*","end":"\\*/","contains":[{"$ref":"#contains.5.contains.0"},{"className":"doctag","begin":"(?:TODO|FIXME|NOTE|BUG|XXX):","relevance":0}]},{"$ref":"#contains.4.contains.1.contains.3"},{"begin":"[{,]\\s*","relevance":0,"contains":[{"begin":"[A-Za-z$_][0-9A-Za-z$_]*\\s*:","returnBegin":true,"relevance":0,"contains":[{"className":"attr","begin":"[A-Za-z$_][0-9A-Za-z$_]*","relevance":0}]}]},{"begin":"(!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~|\\b(case|return|throw)\\b)\\s*","keywords":"return throw case","contains":[{"$ref":"#contains.5"},{"$ref":"#contains.6"},{"$ref":"#contains.4.contains.1.contains.4"},{"className":"function","begin":"(\\(.*?\\)|[A-Za-z$_][0-9A-Za-z$_]*)\\s*=>","returnBegin":true,"end":"\\s*=>","contains":[{"className":"params","variants":[{"begin":"[A-Za-z$_][0-9A-Za-z$_]*"},{"begin":"\\(\\s*\\)"},{"begin":"\\(","end":"\\)","excludeBegin":true,"excludeEnd":true,"keywords":{"$ref":"#keywords"},"contains":[{"$ref":"#contains.2"},{"$ref":"#contains.3"},{"$ref":"#contains.4"},{"$ref":"#contains.4.contains.1.contains.3"},{"$ref":"#contains.4.contains.1.contains.4"},{"$ref":"#contains.6"},{"$ref":"#contains.5"}]}]}]},{"className":"","begin":"\\s","end":"\\s*","skip":true},{"begin":"<","end":"(\\/[A-Za-z0-9\\\\._:-]+|[A-Za-z0-9\\\\._:-]+\\/)>","subLanguage":"xml","contains":[{"begin":"<[A-Za-z0-9\\\\._:-]+\\s*\\/>","skip":true},{"begin":"<[A-Za-z0-9\\\\._:-]+","end":"(\\/[A-Za-z0-9\\\\._:-]+|[A-Za-z0-9\\\\._:-]+\\/)>","skip":true,"contains":[{"begin":"<[A-Za-z0-9\\\\._:-]+\\s*\\/>","skip":true},"self"]}]}],"relevance":0},{"className":"function","beginKeywords":"function","end":"\\{","excludeEnd":true,"contains":[{"className":"title","begin":"[A-Za-z$_][0-9A-Za-z$_]*","relevance":0},{"className":"params","begin":"\\(","end":"\\)","excludeBegin":true,"excludeEnd":true,"contains":{"$ref":"#contains.9.contains.3.contains.0.variants.2.contains"}}],"illegal":"\\[|%"},{"begin":"\\$[(.]"},{"begin":"\\.\\s*[a-zA-Z_]\\w*","relevance":0},{"className":"class","beginKeywords":"class","end":"[{;=]","excludeEnd":true,"illegal":"[:\"\\[\\]]","contains":[{"beginKeywords":"extends"},{"className":"title","begin":"[a-zA-Z_]\\w*","relevance":0}]},{"beginKeywords":"constructor get set","end":"\\{","excludeEnd":true}],"illegal":"#(?!!)"}
{"aliases":["js","jsx"],"keywords":{"keyword":"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as","literal":"true false null undefined NaN Infinity","built_in":"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},"contains":[{"className":"meta","relevance":10,"begin":"^\\s*['\"]use (strict|asm)['\"]"},{"className":"meta","begin":"^#!","end":"$"},{"className":"string","begin":"'","end":"'","illegal":"\\n","contains":[{"begin":"\\\\[\\s\\S]","relevance":0}]},{"className":"string","begin":"\"","end":"\"","illegal":"\\n","contains":[{"$ref":"#contains.2.contains.0"}]},{"begin":"html`","end":"","starts":{"end":"`","returnEnd":false,"contains":[{"$ref":"#contains.2.contains.0"},{"className":"subst","begin":"\\$\\{","end":"\\}","keywords":{"$ref":"#keywords"},"contains":[{"$ref":"#contains.2"},{"$ref":"#contains.3"},{"$ref":"#contains.4"},{"begin":"css`","end":"","starts":{"end":"`","returnEnd":false,"contains":[{"$ref":"#contains.2.contains.0"},{"$ref":"#contains.4.starts.contains.1"}],"subLanguage":"css"}},{"className":"string","begin":"`","end":"`","contains":[{"$ref":"#contains.2.contains.0"},{"$ref":"#contains.4.starts.contains.1"}]},{"className":"number","variants":[{"begin":"\\b(0[bB][01]+)"},{"begin":"\\b(0[oO][0-7]+)"},{"begin":"(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)"}],"relevance":0},{"className":"regexp","begin":"\\/","end":"\\/[gimuy]*","illegal":"\\n","contains":[{"$ref":"#contains.2.contains.0"},{"begin":"\\[","end":"\\]","relevance":0,"contains":[{"$ref":"#contains.2.contains.0"}]}]}]}],"subLanguage":"xml"}},{"$ref":"#contains.4.starts.contains.1.contains.3"},{"$ref":"#contains.4.starts.contains.1.contains.4"},{"className":"comment","begin":"//","end":"$","contains":[{"begin":"\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b"},{"className":"doctag","begin":"(?:TODO|FIXME|NOTE|BUG|XXX):","relevance":0}]},{"className":"comment","begin":"/\\*","end":"\\*/","contains":[{"$ref":"#contains.7.contains.0"},{"className":"doctag","begin":"(?:TODO|FIXME|NOTE|BUG|XXX):","relevance":0}]},{"$ref":"#contains.4.starts.contains.1.contains.5"},{"begin":"[{,]\\s*","relevance":0,"contains":[{"begin":"[A-Za-z$_][0-9A-Za-z$_]*\\s*:","returnBegin":true,"relevance":0,"contains":[{"className":"attr","begin":"[A-Za-z$_][0-9A-Za-z$_]*","relevance":0}]}]},{"begin":"(!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~|\\b(case|return|throw)\\b)\\s*","keywords":"return throw case","contains":[{"$ref":"#contains.7"},{"$ref":"#contains.8"},{"$ref":"#contains.4.starts.contains.1.contains.6"},{"className":"function","begin":"(\\(.*?\\)|[A-Za-z$_][0-9A-Za-z$_]*)\\s*=>","returnBegin":true,"end":"\\s*=>","contains":[{"className":"params","variants":[{"begin":"[A-Za-z$_][0-9A-Za-z$_]*"},{"begin":"\\(\\s*\\)"},{"begin":"\\(","end":"\\)","excludeBegin":true,"excludeEnd":true,"keywords":{"$ref":"#keywords"},"contains":[{"$ref":"#contains.2"},{"$ref":"#contains.3"},{"$ref":"#contains.4"},{"$ref":"#contains.4.starts.contains.1.contains.3"},{"$ref":"#contains.4.starts.contains.1.contains.4"},{"$ref":"#contains.4.starts.contains.1.contains.5"},{"$ref":"#contains.4.starts.contains.1.contains.6"},{"$ref":"#contains.8"},{"$ref":"#contains.7"}]}]}]},{"className":"","begin":"\\s","end":"\\s*","skip":true},{"begin":"<","end":"(\\/[A-Za-z0-9\\\\._:-]+|[A-Za-z0-9\\\\._:-]+\\/)>","subLanguage":"xml","contains":[{"begin":"<[A-Za-z0-9\\\\._:-]+\\s*\\/>","skip":true},{"begin":"<[A-Za-z0-9\\\\._:-]+","end":"(\\/[A-Za-z0-9\\\\._:-]+|[A-Za-z0-9\\\\._:-]+\\/)>","skip":true,"contains":[{"begin":"<[A-Za-z0-9\\\\._:-]+\\s*\\/>","skip":true},"self"]}]}],"relevance":0},{"className":"function","beginKeywords":"function","end":"\\{","excludeEnd":true,"contains":[{"className":"title","begin":"[A-Za-z$_][0-9A-Za-z$_]*","relevance":0},{"className":"params","begin":"\\(","end":"\\)","excludeBegin":true,"excludeEnd":true,"contains":{"$ref":"#contains.11.contains.3.contains.0.variants.2.contains"}}],"illegal":"\\[|%"},{"begin":"\\$[(.]"},{"begin":"\\.\\s*[a-zA-Z_]\\w*","relevance":0},{"className":"class","beginKeywords":"class","end":"[{;=]","excludeEnd":true,"illegal":"[:\"\\[\\]]","contains":[{"beginKeywords":"extends"},{"className":"title","begin":"[a-zA-Z_]\\w*","relevance":0}]},{"beginKeywords":"constructor get set","end":"\\{","excludeEnd":true}],"illegal":"#(?!!)"}
Loading

0 comments on commit 9ad3adb

Please sign in to comment.