Skip to content

Commit

Permalink
Add missing await keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTheFiveNine committed May 7, 2024
1 parent 46da8cb commit 5a7030c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"isDesktopOnly": false,
"minAppVersion": "1.5.12",
"name": "GDScript Syntax Highlighting",
"version": "1.0.0"
"version": "1.0.1"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "obsidian-gdscript",
"description": "Adds live GDScript syntax highlighting to code blocks in the Obsidian editor.",
"main": "src/main.js",
"version": "1.0.0",
"version": "1.0.1",
"author": "RobTheFiveNine",
"type": "module",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class GdscriptSyntaxPlugin extends Plugin {
{ regex: /\b-?\d+\b/, token: "number" },
{ regex: /#.+/, token: 'comment' },
{ regex: /\s*(@onready|@export)\b/, token: 'keyword' },
{ 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' },
{ 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' },
{ regex: /[()\[\]{},]/, token: "meta" },

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

0 comments on commit 5a7030c

Please sign in to comment.