summaryrefslogtreecommitdiff
path: root/support/texlab/src/features/highlight.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/src/features/highlight.rs')
-rw-r--r--support/texlab/src/features/highlight.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/support/texlab/src/features/highlight.rs b/support/texlab/src/features/highlight.rs
new file mode 100644
index 0000000000..e1aea6e2ad
--- /dev/null
+++ b/support/texlab/src/features/highlight.rs
@@ -0,0 +1,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)
+}