Skip to content

Commit

Permalink
Update Highlight.js to ~11.6.0
Browse files Browse the repository at this point in the history
This notably adds GraphQL and WebAssembly to `common`.

See: https://github.com/highlightjs/highlight.js/releases/tag/11.6.0
  • Loading branch information
wooorm committed Jul 13, 2022
1 parent 35649ca commit e8b6745
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 0 additions & 4 deletions lib/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ import glsl from 'highlight.js/lib/languages/glsl'
import gml from 'highlight.js/lib/languages/gml'
import golo from 'highlight.js/lib/languages/golo'
import gradle from 'highlight.js/lib/languages/gradle'
import graphql from 'highlight.js/lib/languages/graphql'
import groovy from 'highlight.js/lib/languages/groovy'
import haml from 'highlight.js/lib/languages/haml'
import handlebars from 'highlight.js/lib/languages/handlebars'
Expand Down Expand Up @@ -149,7 +148,6 @@ import vbscriptHtml from 'highlight.js/lib/languages/vbscript-html'
import verilog from 'highlight.js/lib/languages/verilog'
import vhdl from 'highlight.js/lib/languages/vhdl'
import vim from 'highlight.js/lib/languages/vim'
import wasm from 'highlight.js/lib/languages/wasm'
import wren from 'highlight.js/lib/languages/wren'
import x86asm from 'highlight.js/lib/languages/x86asm'
import xl from 'highlight.js/lib/languages/xl'
Expand Down Expand Up @@ -219,7 +217,6 @@ lowlight.registerLanguage('glsl', glsl)
lowlight.registerLanguage('gml', gml)
lowlight.registerLanguage('golo', golo)
lowlight.registerLanguage('gradle', gradle)
lowlight.registerLanguage('graphql', graphql)
lowlight.registerLanguage('groovy', groovy)
lowlight.registerLanguage('haml', haml)
lowlight.registerLanguage('handlebars', handlebars)
Expand Down Expand Up @@ -308,7 +305,6 @@ lowlight.registerLanguage('vbscript-html', vbscriptHtml)
lowlight.registerLanguage('verilog', verilog)
lowlight.registerLanguage('vhdl', vhdl)
lowlight.registerLanguage('vim', vim)
lowlight.registerLanguage('wasm', wasm)
lowlight.registerLanguage('wren', wren)
lowlight.registerLanguage('x86asm', x86asm)
lowlight.registerLanguage('xl', xl)
Expand Down
4 changes: 4 additions & 0 deletions lib/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import csharp from 'highlight.js/lib/languages/csharp'
import css from 'highlight.js/lib/languages/css'
import diff from 'highlight.js/lib/languages/diff'
import go from 'highlight.js/lib/languages/go'
import graphql from 'highlight.js/lib/languages/graphql'
import ini from 'highlight.js/lib/languages/ini'
import java from 'highlight.js/lib/languages/java'
import javascript from 'highlight.js/lib/languages/javascript'
Expand All @@ -31,6 +32,7 @@ import sql from 'highlight.js/lib/languages/sql'
import swift from 'highlight.js/lib/languages/swift'
import typescript from 'highlight.js/lib/languages/typescript'
import vbnet from 'highlight.js/lib/languages/vbnet'
import wasm from 'highlight.js/lib/languages/wasm'
import xml from 'highlight.js/lib/languages/xml'
import yaml from 'highlight.js/lib/languages/yaml'
import {lowlight} from './core.js'
Expand All @@ -43,6 +45,7 @@ lowlight.registerLanguage('csharp', csharp)
lowlight.registerLanguage('css', css)
lowlight.registerLanguage('diff', diff)
lowlight.registerLanguage('go', go)
lowlight.registerLanguage('graphql', graphql)
lowlight.registerLanguage('ini', ini)
lowlight.registerLanguage('java', java)
lowlight.registerLanguage('javascript', javascript)
Expand All @@ -68,6 +71,7 @@ lowlight.registerLanguage('sql', sql)
lowlight.registerLanguage('swift', swift)
lowlight.registerLanguage('typescript', typescript)
lowlight.registerLanguage('vbnet', vbnet)
lowlight.registerLanguage('wasm', wasm)
lowlight.registerLanguage('xml', xml)
lowlight.registerLanguage('yaml', yaml)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"dependencies": {
"@types/hast": "^2.0.0",
"fault": "^2.0.0",
"highlight.js": "~11.5.0"
"highlight.js": "~11.6.0"
},
"devDependencies": {
"@types/mdast": "^3.0.0",
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ That’s why there are three entry points for lowlight:
<!--index start-->

* `lib/core.js` — 0 languages
* `lib/common.js` (default) — 35 languages
* `lib/common.js` (default) — 37 languages
* `lib/all.js` — 192 languages

<!--index end-->
Expand Down Expand Up @@ -454,7 +454,7 @@ place, it’ll be available everywhere.
* [x] `go` (`golang`) — Go
* [ ] `golo` — Golo
* [ ] `gradle` — Gradle
* [ ] `graphql` (`gql`) — GraphQL
* [x] `graphql` (`gql`) — GraphQL
* [ ] `groovy` — Groovy
* [ ] `haml` — HAML
* [ ] `handlebars` (`hbs`, `html.hbs`, `html.handlebars`, `htmlbars`) — Handlebars
Expand Down Expand Up @@ -568,7 +568,7 @@ place, it’ll be available everywhere.
* [ ] `verilog` (`v`, `sv`, `svh`) — Verilog
* [ ] `vhdl` — VHDL
* [ ] `vim` — Vim Script
* [ ] `wasm` — WebAssembly
* [x] `wasm` — WebAssembly
* [ ] `wren` — Wren
* [ ] `x86asm` — Intel x86 Assembly
* [ ] `xl` (`tao`) — XL
Expand Down
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-punctuation">{</span><span class="hljs-attr">"status"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"ok"</span><span class="hljs-punctuation">,</span> <span class="hljs-attr">"extended"</span><span class="hljs-punctuation">:</span> <span class="hljs-keyword">true</span><span class="hljs-punctuation">}</span></span>
<span class="json"><span class="hljs-punctuation">{</span><span class="hljs-attr">"status"</span><span class="hljs-punctuation">:</span> <span class="hljs-string">"ok"</span><span class="hljs-punctuation">,</span> <span class="hljs-attr">"extended"</span><span class="hljs-punctuation">:</span> <span class="hljs-literal"><span class="hljs-keyword">true</span></span><span class="hljs-punctuation">}</span></span>

0 comments on commit e8b6745

Please sign in to comment.