diff --git a/pret-pas.lua b/pret-pas.lua index a866f4a..0288327 100644 --- a/pret-pas.lua +++ b/pret-pas.lua @@ -6,9 +6,13 @@ if not modules then modules = { } end modules ['pret-pas'] = { license = "see context related readme files" } +-- The code formatting is adapted from Lazarus, a Free Pascal RAD IDE. +-- http://lazarus.freepascal.org/ + local visualizer = buffers.newvisualizer("pas") --- reserved words taken from http://www.freepascal.org/docs-html/ref/refse3.html +-- The list of reserved words is taken from +-- http://www.freepascal.org/docs-html/ref/refse3.html visualizer.reservedwords = { -- Turbo Pascal "absolute", "and", "array", "asm", "begin", "case", "const", "constructor", @@ -29,8 +33,8 @@ visualizer.reservedwords = { "packed", "property", "raise", "resourcestring", "threadvar", "try", -- Modifiers - -- some of these are only bold in specific places (this is deliberately - -- ignored) + -- some of these are only bold in specific places (in the following, this is + -- deliberately ignored) "absolute", "abstract", "alias", "assembler", "cdecl", "cppdecl", "default", "export", "external", "far", "far16", "forward", "index", "local", "name", "near", "nostackframe", "oldfpccall", "override", "pascal", "private",