Skip to content

Commit

Permalink
[ release ] Release 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Apr 14, 2019
1 parent 9a06697 commit c830e6f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions res/META-INF/change-notes.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
0.2.1<br/>
<ul>
<li>Fix some compatibility problems, bump minimum supported platform version to 173</li>
<li>Fix a critical bug in 0.2.0 (so 0.2.0 update is deleted)</li>
</ul>
0.2.0<br/>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion res/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<idea-plugin>
<name>Pest</name>
<vendor email="[email protected]" url="https://ice1000.org">ice1000</vendor>
<idea-version since-build="162.0"/>
<idea-version since-build="173.0"/>

<depends>com.intellij.modules.lang</depends>
<depends optional="true" config-file="plugin-rust.xml">org.rust.lang</depends>
Expand Down
4 changes: 2 additions & 2 deletions src/rs/pest/editing/pest-editing.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/rs/pest/pest-highlight.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c830e6f

Please sign in to comment.