no-compat 5.2/5.3 compatible; line endings for markdown.lua
This commit is contained in:
parent
7da46268dc
commit
85dbd3d731
|
@ -23,6 +23,7 @@ local tools = require 'ldoc.tools'
|
|||
local markup = require 'ldoc.markup'
|
||||
local prettify = require 'ldoc.prettify'
|
||||
local doc = require 'ldoc.doc'
|
||||
local unpack = utils.unpack
|
||||
local html = {}
|
||||
|
||||
|
||||
|
|
|
@ -118,8 +118,8 @@ THE SOFTWARE.
|
|||
|
||||
|
||||
-- Set up a table for holding local functions to avoid polluting the global namespace
|
||||
-- Penlight 1.2 defines compatible 5.1 setfenv in utils table
|
||||
local M = {}
|
||||
local unpack = unpack or table.unpack
|
||||
local MT = {__index = _G}
|
||||
setmetatable(M, MT)
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
-- parsing code for doc comments
|
||||
|
||||
local utils = require 'pl.utils'
|
||||
local List = require 'pl.List'
|
||||
local Map = require 'pl.Map'
|
||||
local stringio = require 'pl.stringio'
|
||||
|
@ -7,6 +8,7 @@ local lexer = require 'ldoc.lexer'
|
|||
local tools = require 'ldoc.tools'
|
||||
local doc = require 'ldoc.doc'
|
||||
local Item,File = doc.Item,doc.File
|
||||
local unpack = utils.unpack
|
||||
|
||||
------ Parsing the Source --------------
|
||||
-- This uses the lexer from PL, but it should be possible to use Peter Odding's
|
||||
|
|
Loading…
Reference in New Issue