Skip to content

Lexgen fails to work with NSID's that feature Rust keywords #332

@videah

Description

@videah

I've been trying to generate some type definitions for leaflet.pub's lexicons but the use of pub in their NSID causes lexgen to bail with the error:

cargo run -p lexgen -- --lexdir $HOME/Git/zine/lexicons
   Compiling lexgen v0.1.0 (/Users/videah/Git/zine/crates/lexicon/lexgen)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.22s
     Running `target/debug/main --lexdir /Users/videah/Git/zine/lexicons`

Error: Error("expected identifier, found keyword `pub`")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions