Skip to content

Commit

Permalink
fix syntax highlighting and variable highlighting were gone
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny-chung committed Nov 14, 2024
1 parent 87aef98 commit a26db15
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ interface BigText {

fun substring(range: IntRange): CharSequence = substring(range.start, range.endInclusive + 1)

fun subSequence(startIndex: Int, endIndex: Int) = substring(startIndex, endIndex)
fun subSequence(startIndex: Int, endIndex: Int): CharSequence

fun findLineString(lineIndex: Int): CharSequence

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ open class ConcurrentBigText(private val delegate: BigText) : BigText {

override fun substring(start: Int, endExclusive: Int): CharSequence = lock.read { delegate.substring(start, endExclusive) }

override fun subSequence(startIndex: Int, endIndex: Int): CharSequence = lock.read { delegate.subSequence(startIndex, endIndex) }

override fun findLineString(lineIndex: Int): CharSequence = lock.read { delegate.findLineString(lineIndex) }

override fun findRowString(rowIndex: Int): CharSequence = lock.read { delegate.findRowString(rowIndex) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ class InefficientBigText(text: String) : BigText {
override fun substring(range: IntRange): CharSequence =
substring(range.first, range.last)

override fun subSequence(startIndex: Int, endIndex: Int): CharSequence =
substring(startIndex, endIndex)

override fun findLineString(lineIndex: Int): CharSequence {
TODO("Not yet implemented")
}
Expand Down

0 comments on commit a26db15

Please sign in to comment.