File tree 3 files changed +14
-9
lines changed
3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
4
8
5
9
- Updated for Gleam v0.32.0
6
10
Original file line number Diff line number Diff line change 1
1
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
+ } ;
4
8
const STRING = {
5
9
className : "string" ,
6
10
variants : [ { begin : / " / , end : / " / } ] ,
@@ -47,7 +51,7 @@ module.exports = function (hljs) {
47
51
hljs . C_LINE_COMMENT_MODE ,
48
52
STRING ,
49
53
{
50
- // bit string
54
+ // bit array
51
55
begin : "<<" ,
52
56
end : ">>" ,
53
57
contains : [
@@ -85,10 +89,7 @@ module.exports = function (hljs) {
85
89
end : "\\(" ,
86
90
excludeEnd : true ,
87
91
} ,
88
- {
89
- className : "keyword" ,
90
- beginKeywords : KEYWORDS ,
91
- } ,
92
+ KEYWORDS ,
92
93
{
93
94
// Type names and constructors
94
95
className : "title" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @gleam-lang/highlight.js-gleam" ,
3
- "version" : " 1.4 .0" ,
3
+ "version" : " 1.5 .0" ,
4
4
"description" : " Adds support for the Gleam language to highlight.js." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments