diff --git a/res/META-INF/change-notes.html b/res/META-INF/change-notes.html
index 948aea9..e96dbbf 100644
--- a/res/META-INF/change-notes.html
+++ b/res/META-INF/change-notes.html
@@ -1,5 +1,7 @@
0.2.1
+ - Fix some compatibility problems, bump minimum supported platform version to 173
+ - Fix a critical bug in 0.2.0 (so 0.2.0 update is deleted)
0.2.0
diff --git a/res/META-INF/plugin.xml b/res/META-INF/plugin.xml
index 23f5d04..6d49b9a 100644
--- a/res/META-INF/plugin.xml
+++ b/res/META-INF/plugin.xml
@@ -1,7 +1,7 @@
Pest
ice1000
-
+
com.intellij.modules.lang
org.rust.lang
diff --git a/src/rs/pest/editing/pest-editing.kt b/src/rs/pest/editing/pest-editing.kt
index 53c1d4b..e7c13ce 100644
--- a/src/rs/pest/editing/pest-editing.kt
+++ b/src/rs/pest/editing/pest-editing.kt
@@ -33,7 +33,7 @@ import com.intellij.psi.impl.search.IndexPatternBuilder
import com.intellij.psi.search.UsageSearchContext
import com.intellij.psi.tree.IElementType
import com.intellij.psi.tree.TokenSet
-import com.intellij.spellchecker.tokenizer.PsiIdentifierOwnerTokenizer
+import com.intellij.spellchecker.PsiIdentifierTokenizer
import com.intellij.spellchecker.tokenizer.SpellcheckingStrategy
import com.intellij.spellchecker.tokenizer.Tokenizer
import rs.pest.*
@@ -144,7 +144,7 @@ class PestSpellCheckingStrategy : SpellcheckingStrategy() {
override fun getTokenizer(element: PsiElement): Tokenizer<*> = when (element) {
is PestIdentifier -> {
val parent = element.parent
- if (parent is PestGrammarRule && parent.firstChild === element) PsiIdentifierOwnerTokenizer.INSTANCE
+ if (parent is PestGrammarRule && parent.firstChild === element) PsiIdentifierTokenizer()
else EMPTY_TOKENIZER
}
is PestString, is PestCharacter -> EMPTY_TOKENIZER
diff --git a/src/rs/pest/pest-highlight.kt b/src/rs/pest/pest-highlight.kt
index b35225a..388269e 100644
--- a/src/rs/pest/pest-highlight.kt
+++ b/src/rs/pest/pest-highlight.kt
@@ -27,7 +27,7 @@ object PestHighlighter : SyntaxHighlighter {
@JvmField val SILENT = TextAttributesKey.createTextAttributesKey("PEST_SILENT", DefaultLanguageHighlighterColors.FUNCTION_DECLARATION)
@JvmField val ATOMIC = TextAttributesKey.createTextAttributesKey("PEST_ATOMIC", DefaultLanguageHighlighterColors.LOCAL_VARIABLE)
@JvmField val COMPOUND_ATOMIC = TextAttributesKey.createTextAttributesKey("PEST_COMPOUND_ATOMIC", DefaultLanguageHighlighterColors.LOCAL_VARIABLE)
- @JvmField val NON_ATOMIC = TextAttributesKey.createTextAttributesKey("PEST_NON_ATOMIC", DefaultLanguageHighlighterColors.REASSIGNED_LOCAL_VARIABLE)
+ @JvmField val NON_ATOMIC = TextAttributesKey.createTextAttributesKey("PEST_NON_ATOMIC", DefaultLanguageHighlighterColors.LOCAL_VARIABLE)
@JvmField val NUMBER = TextAttributesKey.createTextAttributesKey("PEST_NUMBER", DefaultLanguageHighlighterColors.NUMBER)
@JvmField val STRING = TextAttributesKey.createTextAttributesKey("PEST_STRING", DefaultLanguageHighlighterColors.STRING)
@JvmField val CHAR = TextAttributesKey.createTextAttributesKey("PEST_CHAR", DefaultLanguageHighlighterColors.STRING)