diff --git a/manifest.json b/manifest.json index 447c73a..743e85e 100644 --- a/manifest.json +++ b/manifest.json @@ -6,5 +6,5 @@ "isDesktopOnly": false, "minAppVersion": "1.5.12", "name": "GDScript Syntax Highlighting", - "version": "1.0.0" + "version": "1.0.1" } \ No newline at end of file diff --git a/package.json b/package.json index 9d51e28..986fe06 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/main.js b/src/main.js index 1e1f41d..3167757 100644 --- a/src/main.js +++ b/src/main.js @@ -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,