aboutsummaryrefslogtreecommitdiffstats
path: root/src/parse.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.rs')
-rw-r--r--src/parse.rs3
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);