From ec69d5acedd03157710c272ecef41e1c21beab04 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Sun, 18 Dec 2011 19:34:20 +0100 Subject: [PATCH] $ORIGIN --- zscan.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/zscan.go b/zscan.go index 523707ae..5990eef3 100644 --- a/zscan.go +++ b/zscan.go @@ -313,11 +313,12 @@ func zlexer(s scanner.Scanner, c chan lex) { // If we have a string and its the first, make it an owner l.value = _OWNER l.token = str - if str[0] == '$' { - if str == "$TTL" { - l.value = _DIRTTL - } - } + if str == "$TTL" { + l.value = _DIRTTL + } + if str == "$ORIGIN" { + l.value = _DIRORIGIN + } c <- l } else { l.value = _STRING