Skip to content

Commit

Permalink
Update Highlight.js to ~10.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Feb 8, 2021
1 parent 2d4c8a6 commit cd70821
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
"dependencies": {
"fault": "^1.0.0",
"highlight.js": "~10.5.0"
"highlight.js": "~10.6.0"
},
"devDependencies": {
"browserify": "^17.0.0",
Expand Down
4 changes: 2 additions & 2 deletions test/fixture/css-pseudo-selector/output.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<span class="hljs-selector-tag">li</span><span class="hljs-selector-pseudo">:not(.red)</span>{}
<span class="hljs-selector-tag">li</span><span class="hljs-selector-pseudo">:not(.red)</span><span class="hljs-selector-pseudo">:not(.green)</span>{}
<span class="hljs-selector-tag">li</span><span class="hljs-selector-pseudo">:not</span>(<span class="hljs-selector-class">.red</span>){}
<span class="hljs-selector-tag">li</span><span class="hljs-selector-pseudo">:not</span>(<span class="hljs-selector-class">.red</span>)<span class="hljs-selector-pseudo">:not</span>(<span class="hljs-selector-class">.green</span>){}
2 changes: 1 addition & 1 deletion test/fixture/http-default/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
<span class="hljs-attribute">Content-Type</span><span class="hljs-punctuation">: </span>application/json; charset=utf-8
<span class="hljs-attribute">Content-Length</span><span class="hljs-punctuation">: </span>19

<span class="json">{<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;ok&quot;</span>, <span class="hljs-attr">&quot;extended&quot;</span>: <span class="hljs-literal">true</span>}</span>

This comment has been minimized.

Copy link
@joshgoebel

joshgoebel Feb 8, 2021

This is strange, not sure why this would have changed?

This comment has been minimized.

Copy link
@wooorm

wooorm Feb 8, 2021

Author Owner

I think it’s a dev dep that stopped serializing " as &quot; when not needed, which surfaced now because I regenerated all fixtures, but it was never a thing because I compare ASTs instead of how HTML is serialized!

<span class="json">{<span class="hljs-attr">"status"</span>: <span class="hljs-string">"ok"</span>, <span class="hljs-attr">"extended"</span>: <span class="hljs-literal">true</span>}</span>
6 changes: 3 additions & 3 deletions test/fixture/swift-functions/output.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<span class="hljs-class"><span class="hljs-keyword">protocol</span> <span class="hljs-title">Protocol</span> </span>{
<span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">f1</span><span class="hljs-params">()</span></span>
<span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">f2</span><span class="hljs-params">()</span></span>
<span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">f1</span>()</span>
<span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">f2</span>()</span>
}

<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MyClass</span> </span>{
<span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">f</span><span class="hljs-params">()</span></span> {
<span class="hljs-function"><span class="hljs-keyword">func</span> <span class="hljs-title">f</span>()</span> {
<span class="hljs-keyword">return</span> <span class="hljs-literal">true</span>
}
}

0 comments on commit cd70821

Please sign in to comment.