Animated by these discussions here in Webboard
-- "compiler support and syntax highlighting"
-- "Possible and harmless typo in COMPILE.CNF"
I worked a bit on the VEDIT compiler support files.
Last week I posted a preliminary version here.
Now it should be finished.
Here are the new files for the Vedit users who would like to use them.
The changes compared to the original VEDIT distribution (2008-02-12 / 6.15.2) are:
- The configuration parameter SUPPORTPATH in Compile.cnf
is enhanced now:
Pathes with spaces are allowed, with optional double quotes, with optional comment.
- The compiler output file (vcs.tmp) can be displayed with syntax highlighting.
That way you can for example highlight the warning-/error-syntax of the compiler.
As background color the same color is used as in the original source code window.
This feature is activated by special - compiler dependent - files
in the SUPPORTPATH directory.
If there is an appropriate syntax file named like *-OUT.SYN, that one is used.
("*" is the same compiler name as used for the *.VCS file, eg. GCC-OUT.SYN),
If there is no such *-OUT.SYN the macro tries to find and use a GENERIC-OUT.SYN.
If that one isn't existing as well, no syntax highlighting is used and
the window color is the original blue.
As example I added GCC.VS and GGC-OUT.SYN to the compiler files.
- The internally used vcs-tmp.bat file used for calling the compiler is
no longer stored in the project directory but in VEDIT_TEMP.
So even very long (deep) project directories doesn't kill the Sys()
command calling the compiler.
Doing that change I simplified the syntax to call the compiler
(internally and in the .VCS files).
Example from a .VCS file:
:COMPILE:
[...]
// old:
// Call(103,"MAKE-BAT") // Create VCS-TMP.BAT file
// System('"|@(96)\vcs-tmp.bat"',DOS+NOMSG+SIMPLE)
//new:
Call(103,"EXEC-COMPILER") // Create and execute VCS-TMP.BAT
I modified all supplied .VCS files that way.
If you have your own VCS files you have to change them too.
To make that easier, the compiler macro checks the currently used
.VCS file and changes it automatically.
Then it presents the result to the user to let him doublecheck.
The new compiler support files (all files from the directory vedit\compile)
are packed into two ZIP files:
1.) compile-execs.zip contains only the .VDM und .BAT files.
Usually those files aren't modified by users and therefore should be
save to overwrite.
2.) compile-vcs+.zip contains the .VCS files etc..
Check carefully to not overwrite your possible modifications here!
Of course it's always a good idea to backup the compile directory before the install.
Christian
PS: There is a syntax file JAVA.SYN in the compile directory.
I don't know why. It's there for several years now.
I assume that's by mistake!?
The same file is in the Vedit home directory, where it's correct.