pub struct Grammar {
pub name: &'static str,
pub exts: &'static [&'static str],
pub rules: &'static [Rule],
pub ident: &'static str,
pub calls: bool,
pub macros: bool,
pub caps_types: bool,
pub comment: &'static str,
pub openers: &'static str,
pub closers: &'static str,
pub pairs: &'static str,
}Expand description
a language (see the module header)
Fields§
§name: &'static str§exts: &'static [&'static str]file extensions (lower case, without the dot)
rules: &'static [Rule]§ident: &'static strcharacters inside identifiers besides letters, digits and ‘_’
calls: boolan identifier before ‘(’ is a function
macros: boolan identifier before ‘!’ is a macro (Rust)
caps_types: boolcapitalised identifiers are types
comment: &'static strthe line comment of Ctrl+/ (“”: none)
openers: &'static strEnter after one of these indents one level more
closers: &'static strone of these typed on a blank line goes one level out
pairs: &'static strthe bracket pairs the editor matches: “()[]{}”
Auto Trait Implementations§
impl Forget for Grammar
impl Freeze for Grammar
impl RefUnwindSafe for Grammar
impl Send for Grammar
impl Sync for Grammar
impl Unpin for Grammar
impl UnsafeUnpin for Grammar
impl UnwindSafe for Grammar
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more