Skip to content

Commit 9e8a417

Browse files
committed
[pascal mode] Add more keywords
Closes codemirror#5440
1 parent 4aa7f69 commit 9e8a417

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

mode/pascal/pascal.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,21 @@ CodeMirror.defineMode("pascal", function() {
1717
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
1818
return obj;
1919
}
20-
var keywords = words("and array begin case const div do downto else end file for forward integer " +
21-
"boolean char function goto if in label mod nil not of or packed procedure " +
22-
"program record repeat set string then to type until var while with");
20+
var keywords = words(
21+
"absolute and array asm begin case const constructor destructor div do " +
22+
"downto else end file for function goto if implementation in inherited " +
23+
"inline interface label mod nil not object of operator or packed procedure " +
24+
"program record reintroduce repeat self set shl shr string then to type " +
25+
"unit until uses var while with xor as class dispinterface except exports " +
26+
"finalization finally initialization inline is library on out packed " +
27+
"property raise resourcestring threadvar try absolute abstract alias " +
28+
"assembler bitpacked break cdecl continue cppdecl cvar default deprecated " +
29+
"dynamic enumerator experimental export external far far16 forward generic " +
30+
"helper implements index interrupt iocheck local message name near " +
31+
"nodefault noreturn nostackframe oldfpccall otherwise overload override " +
32+
"pascal platform private protected public published read register " +
33+
"reintroduce result safecall saveregisters softfloat specialize static " +
34+
"stdcall stored strict unaligned unimplemented varargs virtual write");
2335
var atoms = {"null": true};
2436

2537
var isOperatorChar = /[+\-*&%=<>!?|\/]/;

0 commit comments

Comments
 (0)