initial blank line makes lexer give up

This commit is contained in:
steve donovan 2011-07-29 15:54:23 +02:00
parent 1dc062dafb
commit bedb89a307
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ function lexer.scan (s,matches,filter,options)
local line = 1
if file then
s = file:read()
if not s or s == '' then return nil end -- empty file
if not s then return nil end -- empty file
s = s ..'\n'
end
local sz = #s