diff options
| author | Jonas Maier <> | 2026-03-07 09:08:26 +0100 |
|---|---|---|
| committer | Jonas Maier <> | 2026-03-07 09:08:26 +0100 |
| commit | bc7f1d9875d62412ad70280bd74636c6ca39f3cc (patch) | |
| tree | 9939730f2b8678e9fee50824d85026e06905212a | |
| parent | 2d922be2b47bb789fd2903fe48fe2ba920775114 (diff) | |
| download | pish-bc7f1d9875d62412ad70280bd74636c6ca39f3cc.tar.gz | |
fun<tab> parsing
| -rw-r--r-- | src/parse.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parse.rs b/src/parse.rs index 8501963..2902633 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -82,8 +82,7 @@ pub struct FunDecl<S: Stage> { impl Parse for FunDecl<PreExpansion> { fn parse(b: &mut Cursor<'_>) -> Result<Self> { b.spaces(); - // TODO allow fun<tab>name() {} - if !b.buf.starts_with(b"fun ") { + if !b.buf.starts_with(b"fun ") && !b.buf.starts_with(b"fun\t") { return Err(ParseError::NotAFunDecl); } b.advance(4); |
