Skip to content

Commit

Permalink
[ release ] Release 0.3.14
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Apr 6, 2019
1 parent c89f1d0 commit d1c56ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/org/ice1000/julia/lang/editing/julia-completion.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import org.ice1000.julia.lang.editing.JuliaBasicCompletionContributor.Completion
import org.ice1000.julia.lang.module.JULIA_COLOR_CONSTANTS
import org.ice1000.julia.lang.psi.*
import org.ice1000.julia.lang.psi.impl.prevRealSibling
import kotlin.streams.toList


open class JuliaCompletionProvider(private val list: List<LookupElement>) : CompletionProvider<CompletionParameters>() {
override fun addCompletions(
Expand Down Expand Up @@ -171,12 +169,12 @@ class JuliaBasicCompletionContributor : CompletionContributor() {
private val builtinV06 by lazy {
this::class.java.getResource("builtin-v0.6.txt")
.openStream()
.bufferedReader().lines().toList()
.bufferedReader().lineSequence().toList()
}
private val builtinV10 by lazy {
this::class.java.getResource("builtin-v1.0.txt")
.openStream()
.bufferedReader().lines().toList()
.bufferedReader().lineSequence().toList()
}

val builtins by lazy {
Expand Down
3 changes: 1 addition & 2 deletions src/org/ice1000/julia/lang/editing/julia-spell-checker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ import org.ice1000.julia.lang.psi.JuliaSymbol
import org.jdom.Verifier
import org.jetbrains.annotations.NonNls
import java.util.regex.Pattern
import kotlin.streams.toList

class JuliaSpellCheckingStrategy : SpellcheckingStrategy() {

companion object {
private val juliaWordsRegex by lazy {
this::class.java.getResource("spelling.txt")
.openStream()
.bufferedReader().lines().toList().joinToString("|", prefix = "(", postfix = ")")
.bufferedReader().lineSequence().joinToString("|", prefix = "(", postfix = ")")
}
}

Expand Down

0 comments on commit d1c56ef

Please sign in to comment.