Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 29888ad

Browse files
Max Brunsfeldalexheretic
authored andcommitted
Add plain rust as an additional grammar scope (#70)
The new rust grammar based on Tree-sitter uses a different convention for scope names where language names are not prefixed by `source`. This change will allow the rust language server to activate when editing rust files with the Tree-sitter parser.
1 parent f9aab65 commit 29888ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ class RustLanguageClient extends AutoLanguageClient {
528528
}
529529

530530
getGrammarScopes() {
531-
return ["source.rust"]
531+
return ["source.rust", "rust"]
532532
}
533533
getLanguageName() {
534534
return "Rust"

0 commit comments

Comments
 (0)