summaryrefslogtreecommitdiff
path: root/context/data/scite/lexers/scite-context-lexer-cld.lua
blob: 1e30c18a2871bff3d1373470b5c94a3259241ccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local info = {
    version   = 1.002,
    comment   = "scintilla lpeg lexer for cld",
    author    = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
    copyright = "PRAGMA ADE / ConTeXt Development Team",
    license   = "see context related readme files",
}

local lexer = lexer

local cldlexer   = { _NAME = "cld", _FILENAME = "scite-context-lexer-cld" }
local whitespace = lexer.WHITESPACE -- maybe we need to fix this
local context    = lexer.context

local lualexer   = lexer.load('scite-context-lexer-lua')

cldlexer._rules       = lualexer._rules_cld
cldlexer._tokenstyles = lualexer._tokenstyles
cldlexer._foldsymbols = lualexer._foldsymbols
cldlexer._directives  = lualexer._directives

return cldlexer