|
|
@ -23,14 +23,14 @@ module.exports = class SourceHighlighters { |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
return cb(e.message) |
|
|
|
return cb(e.message) |
|
|
|
} |
|
|
|
} |
|
|
|
if (!highlighters[mod]) highlighters[mod] = new SourceHighlighter() |
|
|
|
if (!this.highlighters[mod]) this.highlighters[mod] = new SourceHighlighter() |
|
|
|
highlighters[mod].currentSourceLocation(null) |
|
|
|
this.highlighters[mod].currentSourceLocation(null) |
|
|
|
highlighters[mod].currentSourceLocationFromfileName(position, filePath, hexColor) |
|
|
|
this.highlighters[mod].currentSourceLocationFromfileName(position, filePath, hexColor) |
|
|
|
cb() |
|
|
|
cb() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
discardHighlight (mod, cb) { |
|
|
|
discardHighlight (mod, cb) { |
|
|
|
if (highlighters[mod]) highlighters[mod].currentSourceLocation(null) |
|
|
|
if (this.highlighters[mod]) this.highlighters[mod].currentSourceLocation(null) |
|
|
|
cb() |
|
|
|
cb() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|