unified setting higlighting range for errors

This commit is contained in:
Ilya Puchka
2017-12-25 01:10:58 +01:00
parent c486617854
commit bb3f33724b
4 changed files with 19 additions and 42 deletions

View File

@@ -77,6 +77,7 @@ struct Lexer {
}
protocol Lexeme {
var contents: String { get }
var range: Range<String.Index> { get }
}