initial blank line makes lexer give up
This commit is contained in:
parent
1dc062dafb
commit
bedb89a307
|
@ -156,7 +156,7 @@ function lexer.scan (s,matches,filter,options)
|
||||||
local line = 1
|
local line = 1
|
||||||
if file then
|
if file then
|
||||||
s = file:read()
|
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'
|
s = s ..'\n'
|
||||||
end
|
end
|
||||||
local sz = #s
|
local sz = #s
|
||||||
|
|
Loading…
Reference in New Issue