brink-syntax 0.0.2

Syntax types and parser for inkle's ink narrative scripting language
Documentation
1
2
3
4
5
6
7
8
9
10
use super::check_lossless;

/// Regression test for fuzzer-discovered panic in tag parsing.
/// A block comment before a `#` tag caused `bump_assert(HASH)` to fail
/// because `skip_ws` didn't skip comments while `current()` did.
#[test]
fn fuzz_tag_block_comment_before_hash() {
    let src = "#tag /*comment*/ #tag2\n";
    check_lossless(src);
}