Skip to content

Commit

Permalink
Merge pull request #1963 from uqbar-project/fixes-highlight-editor
Browse files Browse the repository at this point in the history
Fix #1961
  • Loading branch information
PalumboN authored Nov 18, 2020
2 parents e35f53d + ee0b84d commit 55083ee
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class WollokHighlightingCalculator extends DefaultSemanticHighlightingCalculator
}

def void addHighlight(int initialOffset, String keyword, String name, ICompositeNode node, IHighlightedPositionAcceptor acceptor, String style) {
if (node === null || node.text === null || name === null) return
val startKeyword = node.text.indexOf(keyword)
if (startKeyword == -1) return
val start = node.text.indexOf(name, startKeyword)
Expand Down

0 comments on commit 55083ee

Please sign in to comment.