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