Skip to content

Commit

Permalink
v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Feb 29, 2024
1 parent f8ca329 commit 05d53d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog

## 1.4.0 - Unreleased
## 1.5.0 - 2024-02-29

- Updated for Gleam v1.0.0

## 1.4.0 - 2023-07-28

- Updated for Gleam v0.32.0

Expand Down
15 changes: 8 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
module.exports = function (hljs) {
const KEYWORDS =
"as assert case const fn if import let panic use opaque pub todo type";
const KEYWORDS = {
className: "keyword",
beginKeywords:
"as assert auto case const delegate derive echo else fn if " +
"implement import let macro opaque panic pub test todo type use",
};
const STRING = {
className: "string",
variants: [{ begin: /"/, end: /"/ }],
Expand Down Expand Up @@ -47,7 +51,7 @@ module.exports = function (hljs) {
hljs.C_LINE_COMMENT_MODE,
STRING,
{
// bit string
// bit array
begin: "<<",
end: ">>",
contains: [
Expand Down Expand Up @@ -85,10 +89,7 @@ module.exports = function (hljs) {
end: "\\(",
excludeEnd: true,
},
{
className: "keyword",
beginKeywords: KEYWORDS,
},
KEYWORDS,
{
// Type names and constructors
className: "title",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gleam-lang/highlight.js-gleam",
"version": "1.4.0",
"version": "1.5.0",
"description": "Adds support for the Gleam language to highlight.js.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 05d53d3

Please sign in to comment.