From f66d8b3ec9de1c2e3890c68d683a00bfe92f8fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Mon, 21 Nov 2022 12:19:11 +0100 Subject: [PATCH] syntax_errors.md: add note about "Controlling Highlighting" for annotators/inspections --- topics/tutorials/syntax_errors.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/topics/tutorials/syntax_errors.md b/topics/tutorials/syntax_errors.md index b2b92948a..09e26c36f 100644 --- a/topics/tutorials/syntax_errors.md +++ b/topics/tutorials/syntax_errors.md @@ -8,6 +8,8 @@ While the PSI tree for the code is being built, a [parser](implementing_parser_a When it encounters a syntax error, like an unexpected token, a [`PsiErrorElement`](%gh-ic%/platform/core-api/src/com/intellij/psi/PsiErrorElement.java) is created and added to the PSI tree with an appropriate error description. In the code analysis daemon, the IDE visits every PSI element in the tree, and when a `PsiErrorElement` is encountered, information about it is collected and used while highlighting the code in the editor. +> Additional highlighting can also be added using [Annotators](syntax_highlighting_and_error_highlighting.md#syntax) or Inspections, see [Controlling Highlighting](controlling_highlighting.md) on how to suppress. + ## Controlling Syntax Errors Highlighting In some cases highlighting syntax errors is insufficient or even unnecessary: