* autocomplete rsx * hide the completions module * fix autocomplete for identifiers that start with a raw identifier * add field completion hints for props * remove extra import * Revert "add field completion hints for props" This reverts commit 194899c73783e0f9b5d601d53365746d838f2048. * fix autocomplete inside raw expressions * fix autofmt * feat: just use regular ifmt if it's compatible reuses the tokens for ifmt so RA provides its HIR lowering on simple formatted strings * fix merging ifmt strings * add a better error message for components called like functions --------- Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
8 lines
238 B
Rust
8 lines
238 B
Rust
pub(crate) fn try_parse_braces<'a>(
|
|
input: &syn::parse::ParseBuffer<'a>,
|
|
) -> syn::Result<(syn::token::Brace, syn::parse::ParseBuffer<'a>)> {
|
|
let content;
|
|
let brace = syn::braced!(content in input);
|
|
Ok((brace, content))
|
|
}
|