summaryrefslogtreecommitdiff
path: root/support/texlab/src/features/highlight.rs
blob: e1aea6e2ade9c8461ac3dd2931e09cb79100f5ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod label;

use cancellation::CancellationToken;
use lsp_types::{DocumentHighlight, DocumentHighlightParams};

use self::label::find_label_highlights;

use super::FeatureRequest;

pub fn find_document_highlights(
    request: FeatureRequest<DocumentHighlightParams>,
    token: &CancellationToken,
) -> Option<Vec<DocumentHighlight>> {
    find_label_highlights(&request, token)
}