summaryrefslogtreecommitdiff
path: root/src/eval/library.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-11 11:46:12 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-11 11:46:12 +0100
commit8e5f446544fd147277ed2e4208c7ea793cc846a7 (patch)
treef8b0143fb3845da6673ca1312f03ab53f0f28a50 /src/eval/library.rs
parenta9fdff244aef859449a76e5f762ee7c343a8ddcc (diff)
Autocompletion for raw language tags
Diffstat (limited to 'src/eval/library.rs')
-rw-r--r--src/eval/library.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eval/library.rs b/src/eval/library.rs
index 75787348..c37c16fd 100644
--- a/src/eval/library.rs
+++ b/src/eval/library.rs
@@ -55,6 +55,8 @@ pub struct LangItems {
pub emph: fn(body: Content) -> Content,
/// Raw text with optional syntax highlighting: `` `...` ``.
pub raw: fn(text: EcoString, tag: Option<EcoString>, block: bool) -> Content,
+ /// The language names and tags supported by raw text.
+ pub raw_languages: fn() -> Vec<(&'static str, Vec<&'static str>)>,
/// A hyperlink: `https://typst.org`.
pub link: fn(url: EcoString) -> Content,
/// A reference: `@target`.