summaryrefslogtreecommitdiff
path: root/context/data/scite/lexers/scite-context-lexer-pdf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'context/data/scite/lexers/scite-context-lexer-pdf.lua')
-rw-r--r--context/data/scite/lexers/scite-context-lexer-pdf.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/context/data/scite/lexers/scite-context-lexer-pdf.lua b/context/data/scite/lexers/scite-context-lexer-pdf.lua
index bddcc282d..05517bb64 100644
--- a/context/data/scite/lexers/scite-context-lexer-pdf.lua
+++ b/context/data/scite/lexers/scite-context-lexer-pdf.lua
@@ -12,7 +12,7 @@ local lexer = lexer
local token = lexer.token
local P, R, S = lpeg.P, lpeg.R, lpeg.S
-local pdflexer = { "pdf" }
+local pdflexer = { _NAME = "pdf" }
local pdfobjectlexer = lexer.load("scite-context-lexer-pdf-object")
local pdfxreflexer = lexer.load("scite-context-lexer-pdf-xref")
@@ -60,3 +60,5 @@ pdflexer._rules = {
}
pdflexer._tokenstyles = context.styleset
+
+return pdflexer