Skip to content

Commit

Permalink
#201 Rust mut keyword is primary on VSCode.
Browse files Browse the repository at this point in the history
  • Loading branch information
dinbtechit committed Oct 31, 2024
1 parent fb5b7e6 commit 1ced509
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# vscode-theme Changelog

## Unreleased
### Fixed
- #201 - Rust mut keyword inconsistent colors

## 1.10.12 - 2024-10-26

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RustAnnotator : BaseAnnotator() {
override fun getKeywordType(element: PsiElement): TextAttributesKey? {
var type: TextAttributesKey? = null
when (element.text) {
"mut", "match","return" -> type = SECONDARY_KEYWORD
"match","return" -> type = SECONDARY_KEYWORD
"if", "else", "switch", "case", "default", "break", "continue", "as" -> type = SECONDARY_KEYWORD
"try", "catch", "finally", "throw" -> type = SECONDARY_KEYWORD
"for", "while", "loop", "in" -> type = SECONDARY_KEYWORD
Expand Down

0 comments on commit 1ced509

Please sign in to comment.