AzureMarker / intellij-lalrpop

Jetbrains plugin for the LALRPOP parser-generator
MIT License
16 stars 2 forks source link

Unexpected :: in use item? #1

Closed dnbln closed 4 years ago

dnbln commented 4 years ago

I have a lalrpop file that begins with:

use crate::{
    grammar::{
        lexer,
        lexer::TokLoc,
        ast::*,
    },
};

Aside the wrong highlighting on the grammar word here, I get an error on the first : after crate, saying: LALRPOP.SEMICOLON expected, got ':'

AzureMarker commented 4 years ago

Thanks for trying out the plugin! I thought this kind of import might have issues... I'm currently working on making the import section of the grammar file act like embedded Rust code, which should also fix this issue.

AzureMarker commented 4 years ago

This should be fixed in the latest commit, https://github.com/Mcat12/intellij-lalrpop/commit/58083687d42dd7443fecbad34de7571e768de3b3

Edit: example of the new behavior: image