- Updated some comments
This commit is contained in:
parent
978900de22
commit
a70e58fceb
10
pret-pas.lua
10
pret-pas.lua
|
@ -6,9 +6,13 @@ if not modules then modules = { } end modules ['pret-pas'] = {
|
||||||
license = "see context related readme files"
|
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")
|
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 = {
|
visualizer.reservedwords = {
|
||||||
-- Turbo Pascal
|
-- Turbo Pascal
|
||||||
"absolute", "and", "array", "asm", "begin", "case", "const", "constructor",
|
"absolute", "and", "array", "asm", "begin", "case", "const", "constructor",
|
||||||
|
@ -29,8 +33,8 @@ visualizer.reservedwords = {
|
||||||
"packed", "property", "raise", "resourcestring", "threadvar", "try",
|
"packed", "property", "raise", "resourcestring", "threadvar", "try",
|
||||||
|
|
||||||
-- Modifiers
|
-- Modifiers
|
||||||
-- some of these are only bold in specific places (this is deliberately
|
-- some of these are only bold in specific places (in the following, this is
|
||||||
-- ignored)
|
-- deliberately ignored)
|
||||||
"absolute", "abstract", "alias", "assembler", "cdecl", "cppdecl", "default",
|
"absolute", "abstract", "alias", "assembler", "cdecl", "cppdecl", "default",
|
||||||
"export", "external", "far", "far16", "forward", "index", "local", "name",
|
"export", "external", "far", "far16", "forward", "index", "local", "name",
|
||||||
"near", "nostackframe", "oldfpccall", "override", "pascal", "private",
|
"near", "nostackframe", "oldfpccall", "override", "pascal", "private",
|
||||||
|
|
Loading…
Reference in New Issue