Scope should always be highlighted if caret positioned on close marker.

This option is for highlighting scope while typing inside of it.
This commit is contained in:
Alexandr Evstigneev
2019-01-22 15:06:27 +03:00
parent 11b1149c51
commit 7a1fe1b38d
@@ -229,8 +229,7 @@ public class IdentifierHighlighterPass extends TextEditorHighlightingPass {
* In brace matching case this is done from {@link BraceHighlightingHandler#highlightBraces(com.intellij.openapi.util.TextRange, com.intellij.openapi.util.TextRange, boolean, boolean, com.intellij.openapi.fileTypes.FileType)}
*/
private void doAdditionalCodeBlockHighlighting() {
if (!CodeInsightSettings.getInstance().HIGHLIGHT_SCOPE ||
myCodeBlockMarkerRanges.size() < 2 ||
if (myCodeBlockMarkerRanges.size() < 2 ||
myDocument == null ||
!(myEditor instanceof EditorEx)) {
return;