update syntax highlighting to use vscode dark mode theme

This commit is contained in:
2025-12-05 00:25:24 -07:00
parent b06ad778d9
commit f2aedb96df
6 changed files with 116 additions and 49 deletions

View File

@@ -1,4 +1,5 @@
mod macros;
mod syscall;
/// This trait will allow the LSP to emit documentation for various tokens and expressions.
/// You can easily create documentation for large enums with the `documented!` macro.
@@ -10,5 +11,5 @@ pub trait Documentation {
}
pub mod prelude {
pub use super::{Documentation, documented};
pub use super::{Documentation, documented, with_syscalls};
}

View File

@@ -0,0 +1,32 @@
#[macro_export]
macro_rules! with_syscalls {
($matcher:ident) => {
$matcher!(
"yield",
"sleep",
"hash",
"loadFromDevice",
"loadBatchNamed",
"loadBatch",
"setOnDevice",
"setOnDeviceBatched",
"setOnDeviceBatchedNamed",
"acos",
"asin",
"atan",
"atan2",
"abs",
"ceil",
"cos",
"floor",
"log",
"max",
"min",
"rand",
"sin",
"sqrt",
"tan",
"trunc"
);
};
}