style fixes

pull/526/head
LianaHus 4 years ago
parent ccd3adb6af
commit e57a455393
  1. 1
      apps/remix-ide/src/app/editor/SourceHighlighters.js
  2. 2
      apps/remix-ide/src/app/editor/contextualListener.js

@ -25,6 +25,7 @@ class SourceHighlighters {
}
}
// highlights all locations for @from plugin
highlightAllFrom (from) {
try {
if (!this.highlighters[from]) return

@ -123,7 +123,7 @@ class ContextualListener extends Plugin {
}
_highlightInternal (position, node) {
if (node.nodeType == 'Block') return
if (node.nodeType === 'Block') return
let lastCompilationResult = this._deps.compilersArtefacts['__last']
if (lastCompilationResult && lastCompilationResult.languageversion.indexOf('soljson') === 0) {
let lineColumn = this._deps.offsetToLineColumnConverter.offsetToLineColumn(position, position.file, lastCompilationResult.getSourceCode().sources, lastCompilationResult.getAsts())

Loading…
Cancel
Save