Skip to content

Commit 5a7030c

Browse files
Add missing await keyword
1 parent 46da8cb commit 5a7030c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"isDesktopOnly": false,
77
"minAppVersion": "1.5.12",
88
"name": "GDScript Syntax Highlighting",
9-
"version": "1.0.0"
9+
"version": "1.0.1"
1010
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "obsidian-gdscript",
33
"description": "Adds live GDScript syntax highlighting to code blocks in the Obsidian editor.",
44
"main": "src/main.js",
5-
"version": "1.0.0",
5+
"version": "1.0.1",
66
"author": "RobTheFiveNine",
77
"type": "module",
88
"repository": {

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default class GdscriptSyntaxPlugin extends Plugin {
1515
{ regex: /\b-?\d+\b/, token: "number" },
1616
{ regex: /#.+/, token: 'comment' },
1717
{ regex: /\s*(@onready|@export)\b/, token: 'keyword' },
18-
{ regex: /\b(?:and|as|assert|break|breakpoint|const|continue|elif|else|enum|for|if|in|is|master|mastersync|match|not|null|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|static|tool|var|while|yield)\b/, token: 'keyword' },
18+
{ regex: /\b(?:and|as|assert|await|break|breakpoint|const|continue|elif|else|enum|for|if|in|is|master|mastersync|match|not|null|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|static|tool|var|while|yield)\b/, token: 'keyword' },
1919
{ regex: /[()\[\]{},]/, token: "meta" },
2020

2121
// The words following func, class_name and class should be highlighted as attributes,

0 commit comments

Comments
 (0)