summaryrefslogtreecommitdiff
path: root/support/texlab/src/features/highlight.rs
blob: 52746a040f7b247bf0d79df05007ca046da8f31e (plain)
1
2
3
4
5
6
7
8
9
10
mod label;

use lsp_types::{DocumentHighlight, Position, Url};

use crate::{util::cursor::CursorContext, Db};

pub fn find_all(db: &dyn Db, uri: &Url, position: Position) -> Option<Vec<DocumentHighlight>> {
    let context = CursorContext::new(db, uri, position, ())?;
    label::find_highlights(&context)
}