update syntax highlighting to use vscode dark mode theme
This commit is contained in:
@@ -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};
|
||||
}
|
||||
|
||||
32
rust_compiler/libs/helpers/src/syscall.rs
Normal file
32
rust_compiler/libs/helpers/src/syscall.rs
Normal 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"
|
||||
);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user