Skip to content

Commit eefcf6f

Browse files
committed
Add async/await as keywords in HLJS and codemirror
1 parent f983a56 commit eefcf6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/cm-rescript-mode.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ CodeMirror.defineSimpleMode("rescript", {
3636
token: ["keyword", "keyword2", null, "def"]
3737
},
3838
{
39-
regex: /(?:and|as|assert|catch|constraint|downto|else|exception|export|external|false|for|if|import|in|include|lazy|let|module|mutable|of|open|private|switch|to|true|try|type|when|while|with\!)\b/,
39+
regex: /(?:and|as|assert|catch|async|await|constraint|downto|else|exception|export|external|false|for|if|import|in|include|lazy|let|module|mutable|of|open|private|switch|to|true|try|type|when|while|with\!)\b/,
4040
token: "keyword"
4141
},
4242
{

plugins/rescript-highlightjs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function(hljs) {
2929
keyword:
3030
'and as assert catch constraint downto else exception export external false for ' +
3131
'if import in include lazy let module mutable of open private rec switch ' +
32-
'to true try type when while with',
32+
'to true try type when while with async await',
3333
// not reliable
3434
//built_in:
3535
//'array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit',

0 commit comments

Comments
 (0)