oli-obk / ui_test

A test framework for testing rustc diagnostics output
27 stars 25 forks source link

Allow different comment than `//` #239

Closed hellow554 closed 3 months ago

hellow554 commented 5 months ago

I would like to use ui_test for an assembler written in rust where ; is used to start comments.

There are only a few places in https://github.com/oli-obk/ui_test/blob/main/src/parser.rs which needs to be adjustet.

Since there's already a custom_comments field, wouldn't it be possible to either adjust that field to parse the //@ respectively ;@ beginning or introduce a new field on config named comment_prefix or similar.

What do you think?

oli-obk commented 5 months ago

Yea I want to support this, but am not sure yet how to best make it configurable. We'll probably need to try out a few schemes and see what is best