summaryrefslogtreecommitdiff
path: root/src/tparse/tree-statement.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tparse/tree-statement.go')
-rw-r--r--src/tparse/tree-statement.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/tparse/tree-statement.go b/src/tparse/tree-statement.go
index c88b102..cf25085 100644
--- a/src/tparse/tree-statement.go
+++ b/src/tparse/tree-statement.go
@@ -70,14 +70,10 @@ func parseBlock(tokens *[]Token, tok, max int) (Node, int) {
def.Sub = append(def.Sub, tmp)
tok += 1
case "else":
- name = true
- sparse = true
if (*tokens)[tok+1].Data == "if" {
- tmp.Data = Token{KEYWORD, "elif", t.Line, t.Char}
- def.Sub = append(def.Sub, tmp)
tok++
- continue
}
+ fallthrough
case "if", "match", "case", "loop":
name = true
sparse = true