summaryrefslogtreecommitdiff
path: root/support/texlab/src/features/semantic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/src/features/semantic.rs')
-rw-r--r--support/texlab/src/features/semantic.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/support/texlab/src/features/semantic.rs b/support/texlab/src/features/semantic.rs
new file mode 100644
index 0000000000..8dd2674601
--- /dev/null
+++ b/support/texlab/src/features/semantic.rs
@@ -0,0 +1,21 @@
+mod bibtex;
+pub mod legend;
+
+use cancellation::CancellationToken;
+use lsp_types::{SemanticTokens, SemanticTokensRangeParams};
+
+use self::bibtex::find_bibtex_semantic_tokens_range;
+
+use super::FeatureRequest;
+
+pub fn find_semantic_tokens_range(
+ request: FeatureRequest<SemanticTokensRangeParams>,
+ cancellation_token: &CancellationToken,
+) -> Option<SemanticTokens> {
+ let mut data = Vec::new();
+ find_bibtex_semantic_tokens_range(&request, &mut data, cancellation_token);
+ Some(SemanticTokens {
+ result_id: None,
+ data,
+ })
+}