Skip to content

Commit 05d53d3

Browse files
committed
v1.5.0
1 parent f8ca329 commit 05d53d3

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

3-
## 1.4.0 - Unreleased
3+
## 1.5.0 - 2024-02-29
4+
5+
- Updated for Gleam v1.0.0
6+
7+
## 1.4.0 - 2023-07-28
48

59
- Updated for Gleam v0.32.0
610

index.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
module.exports = function (hljs) {
2-
const KEYWORDS =
3-
"as assert case const fn if import let panic use opaque pub todo type";
2+
const KEYWORDS = {
3+
className: "keyword",
4+
beginKeywords:
5+
"as assert auto case const delegate derive echo else fn if " +
6+
"implement import let macro opaque panic pub test todo type use",
7+
};
48
const STRING = {
59
className: "string",
610
variants: [{ begin: /"/, end: /"/ }],
@@ -47,7 +51,7 @@ module.exports = function (hljs) {
4751
hljs.C_LINE_COMMENT_MODE,
4852
STRING,
4953
{
50-
// bit string
54+
// bit array
5155
begin: "<<",
5256
end: ">>",
5357
contains: [
@@ -85,10 +89,7 @@ module.exports = function (hljs) {
8589
end: "\\(",
8690
excludeEnd: true,
8791
},
88-
{
89-
className: "keyword",
90-
beginKeywords: KEYWORDS,
91-
},
92+
KEYWORDS,
9293
{
9394
// Type names and constructors
9495
className: "title",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gleam-lang/highlight.js-gleam",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"description": "Adds support for the Gleam language to highlight.js.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)