We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried this:
I expected this to happen: Syntax highlight should be the same as both. z Instead, this happened: It's different
Here's the code for copy pasting:
correct version:
macro_rules! typst_func { ( $( #[$attr:meta] )* $vis:vis struct $struct_name:ident { $( $pos_arg:ident: $pos_type:ty, )* $( #[named] $( $named_arg:ident: $named_type:ty, )* )? } ) => { $( #[$attr] )* $vis struct $struct_name { $($pos_arg: $pos_type,)* $($($named_arg: Option<$named_type>,)*)? } }; } typst_func! { #[derive(Resource, Reflect, Default)] #[reflect(Resource)] pub struct MainFunc { pos_arg0: f64, pos_arg1: u32, // Anything below the this will be a named argument. #[named] named_arg0: bool, named_arg1: i32, named_arg2: String, } } fn test() { let main = MainFunc::default(); }
Not working correctly version:
macro_rules! typst_func { ( $( #[$attr:meta] )* $vis:vis struct $struct_name:ident { $( $pos_arg:ident: $pos_type:ty, )* $( #[named] $( $named_arg:ident: $named_type:ty, )* )? } ) => { $( #[$attr] )* $vis struct $struct_name { $($pos_arg: $pos_type,)* $($($named_arg: Option<$named_type>,)*)? } }; } typst_func! ( #[derive(Resource, Reflect, Default)] #[reflect(Resource)] pub struct MainFunc { pos_arg0: f64, pos_arg1: u32, // Anything below the this will be a named argument. #[named] named_arg0: bool, named_arg1: i32, named_arg2: String, } ); fn test() { let main = MainFunc::default(); }
N/A
Windows
Windows terminal
cargo
main (388a3b7)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary
Reproduction Steps
I tried this:
I expected this to happen: Syntax highlight should be the same as both.
z
Instead, this happened: It's different
Here's the code for copy pasting:
correct version:
Not working correctly version:
Helix log
N/A
Platform
Windows
Terminal Emulator
Windows terminal
Installation Method
cargo
Helix Version
main (388a3b7)
The text was updated successfully, but these errors were encountered: