This commit is contained in:
Jorge Aparicio 2019-06-20 06:19:59 +02:00
parent b150ab29e2
commit 4e51bb68b9
33 changed files with 143 additions and 142 deletions

View file

@ -3,6 +3,8 @@ use rtfm_syntax::Settings;
#[test]
fn analyze() {
let mut settings = Settings::default();
settings.parse_extern_interrupt = true;
let (app, analysis) = rtfm_syntax::parse2(
quote!(device = pac),
quote!(
@ -20,10 +22,7 @@ fn analyze() {
}
};
),
Settings {
parse_extern_interrupt: true,
..Settings::default()
},
settings,
)
.unwrap();