From d40326b57ca4d84e9b9f1d68df7c4d98306b24f4 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 12 Mar 2022 10:27:37 +0100 Subject: [PATCH 1/3] Update dev-dependencies --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 508bb37..81e7291 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "typescript": "^4.0.0", "unist-builder": "^3.0.0", "unist-util-remove-position": "^4.0.0", - "xo": "^0.47.0" + "xo": "^0.48.0" }, "scripts": { "generate": "node script/build-registry.js", From 10f961760adf618d978e27c3a55ab713edec4c0e Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 12 Mar 2022 10:27:55 +0100 Subject: [PATCH 2/3] Update `Highlight.js` to `~11.5.0` See: https://github.com/highlightjs/highlight.js/releases/tag/11.5.0 --- lib/all.js | 2 ++ package.json | 2 +- readme.md | 3 ++- test/fixture/ruby-heredoc/output.txt | 4 ++-- test/fixture/xml-large/output.txt | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/all.js b/lib/all.js index ec92eda..8b35fc9 100644 --- a/lib/all.js +++ b/lib/all.js @@ -60,6 +60,7 @@ 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' @@ -218,6 +219,7 @@ 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) diff --git a/package.json b/package.json index 81e7291..2129625 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "dependencies": { "@types/hast": "^2.0.0", "fault": "^2.0.0", - "highlight.js": "~11.4.0" + "highlight.js": "~11.5.0" }, "devDependencies": { "@types/mdast": "^3.0.0", diff --git a/readme.md b/readme.md index 68792d5..a026667 100644 --- a/readme.md +++ b/readme.md @@ -48,7 +48,7 @@ That’s why there are three entry points for lowlight: * `lib/core.js` — 0 languages * `lib/common.js` (default) — 35 languages -* `lib/all.js` — 191 languages +* `lib/all.js` — 192 languages @@ -452,6 +452,7 @@ place, it’ll be available everywhere. * [x] `go` (`golang`) — Go * [ ] `golo` — Golo * [ ] `gradle` — Gradle +* [ ] `graphql` (`gql`) — GraphQL * [ ] `groovy` — Groovy * [ ] `haml` — HAML * [ ] `handlebars` (`hbs`, `html.hbs`, `html.handlebars`, `htmlbars`) — Handlebars diff --git a/test/fixture/ruby-heredoc/output.txt b/test/fixture/ruby-heredoc/output.txt index 72b19c0..cb12a0d 100644 --- a/test/fixture/ruby-heredoc/output.txt +++ b/test/fixture/ruby-heredoc/output.txt @@ -1,4 +1,4 @@ -def foo() +def foo() msg = <<-HTML <div> <h4>#{bar}</h4> @@ -6,7 +6,7 @@ HTML end -def baz() +def baz() msg = <<~FOO <div> <h4>#{bar}</h4> diff --git a/test/fixture/xml-large/output.txt b/test/fixture/xml-large/output.txt index 404bb2e..22eef85 100644 --- a/test/fixture/xml-large/output.txt +++ b/test/fixture/xml-large/output.txt @@ -1,4 +1,4 @@ -<?xml version="1.0"?> +<?xml version="1.0"?> <response value="ok" xml:lang="en"> <text>Ok</text> <comment html_allowed="true"/> From 1eb528641806841debb14d25d2c622e773cebe3c Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 12 Mar 2022 10:33:19 +0100 Subject: [PATCH 3/3] 2.6.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2129625..dad2b5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lowlight", - "version": "2.5.0", + "version": "2.6.0", "description": "Virtual syntax highlighting for virtual DOMs and non-HTML things", "license": "MIT", "keywords": [