Class LoopStatementDocumentHighlightSupplier

java.lang.Object
com.github._1c_syntax.bsl.languageserver.documenthighlight.AbstractASTDocumentHighlightSupplier
com.github._1c_syntax.bsl.languageserver.documenthighlight.LoopStatementDocumentHighlightSupplier
All Implemented Interfaces:
DocumentHighlightSupplier

@Component public class LoopStatementDocumentHighlightSupplier extends AbstractASTDocumentHighlightSupplier
Поставщик подсветки для циклов (For/While/Do/EndDo).

При клике на любое из ключевых слов цикла подсвечиваются все связанные ключевые слова того же цикла.

  • Constructor Details

    • LoopStatementDocumentHighlightSupplier

      public LoopStatementDocumentHighlightSupplier()
  • Method Details

    • getDocumentHighlight

      public List<DocumentHighlight> getDocumentHighlight(DocumentHighlightParams params, DocumentContext documentContext, Optional<DocumentHighlightSupplier.TerminalNodeInfo> terminalNodeInfo)
      Description copied from interface: DocumentHighlightSupplier
      Получить список подсветок для элементов, связанных с позицией курсора.
      Parameters:
      params - Параметры запроса document highlight
      documentContext - Контекст документа
      terminalNodeInfo - Информация о терминальном узле на позиции курсора
      Returns:
      Список подсветок связанных элементов, или пустой список если нет совпадений