diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-22 16:00:35 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-22 16:29:28 -0500 |
| commit | fbfb3ad0f70ebbc5db9e5d5fc41c53c15b082d9d (patch) | |
| tree | a41968431e016403aa3956bbdc075dd4a2203e1e /audio/src/parse/macros.rs | |
| parent | audio: refactor into seperate crate (diff) | |
| download | DungeonCrawl-fbfb3ad0f70ebbc5db9e5d5fc41c53c15b082d9d.tar.gz DungeonCrawl-fbfb3ad0f70ebbc5db9e5d5fc41c53c15b082d9d.tar.bz2 DungeonCrawl-fbfb3ad0f70ebbc5db9e5d5fc41c53c15b082d9d.zip | |
audio: some changes
Diffstat (limited to 'audio/src/parse/macros.rs')
| -rw-r--r-- | audio/src/parse/macros.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/src/parse/macros.rs b/audio/src/parse/macros.rs index 1dc33eb..d33208a 100644 --- a/audio/src/parse/macros.rs +++ b/audio/src/parse/macros.rs @@ -75,7 +75,9 @@ fn fill_macro(contents: &mut Vec<Cow<'_, str>>, name: &str, body: &str) -> usize break; } let line = &contents[idx]; - if line.starts_with(name) { + if line.starts_with(name) + && matches!(line.chars().nth(name.len()), None | Some(' ')) + { fill_macro_once(contents, idx, body); count += 1; } |