diff --git a/language-configuration.json b/language-configuration.json index 19dab91..eed2bf2 100644 --- a/language-configuration.json +++ b/language-configuration.json @@ -43,5 +43,5 @@ "end": "^\\s*\\)\\b" } }, - "wordPattern": "(-?\\d*\\.\\d+)|([^\\~\\:\\+\\-\\!\\^\\*\/\\%\\=\\<\\>\\&\\|\\;\\,\\(\\)\\'\\[\\]\\{\\}]+)", + "wordPattern": "(-?\\d*\\.\\d+)|([^~:+\\-!^*/%=<>&|;,()'[\\]{}\\s]+)", } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 4188a7a..879f536 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "scarpet", - "version": "0.1.6", + "version": "0.1.9", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 454d406..9a7d950 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "bugs": { "url": "https://github.com/ImUrX/vscode-scarpet/issues" }, - "version": "0.1.9", + "version": "0.1.10", "engines": { "vscode": "^1.43.0" }, diff --git a/src/completionProvider.ts b/src/completionProvider.ts index 9479097..ac1dc33 100644 --- a/src/completionProvider.ts +++ b/src/completionProvider.ts @@ -12,10 +12,7 @@ export default class ScarpetCompletionItemProvider const results: vscode.CompletionItem[] = [], text = document.lineAt(position.line).text; - if ( - position.character <= 0 || - this.isInsideStringOrComment(document, position) - ) { + if (position.character <= 0 || this.isInsideStringOrComment(document, position)) { return Promise.resolve(results); }