Made tokenizer skip parsing process on plain-text files
This, along with the earlier rencache changes should resolve #64
This commit is contained in:
parent
bcd1b3a081
commit
6525269386
|
@ -42,6 +42,10 @@ function tokenizer.tokenize(syntax, text, state)
|
||||||
local res = {}
|
local res = {}
|
||||||
local i = 1
|
local i = 1
|
||||||
|
|
||||||
|
if #syntax.patterns == 0 then
|
||||||
|
return { "normal", text }
|
||||||
|
end
|
||||||
|
|
||||||
while i <= #text do
|
while i <= #text do
|
||||||
-- continue trying to match the end pattern of a pair if we have a state set
|
-- continue trying to match the end pattern of a pair if we have a state set
|
||||||
if state then
|
if state then
|
||||||
|
|
Loading…
Reference in New Issue