Skip to content

Support a variety of attributes #38

@pczarn

Description

@pczarn

doc comments on rules in grammar

  • support

Example

/// A potentially captured element.
pat_elem ::= pat:pattern elem:elem;

Should result with the following somewhere down the road

#[doc = "A potentially captured element."]
struct PatElem {
    pat: Pattern,
    elem: Elem,
}

inline attrs

  • support
  • variety of levels

Example

grammar! {
    #![inline(level = 2)]
    ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions