> > > "TEST.PAS(1)^MTEST.PAS(1)^MTEST.PAS" [access denied]
> > > (3/5) error 36: BEGIN expected.
> >
> > [ Jürgen schrieb: ]
> > For parsing the output for Vim you should first get rid of everything up
> > to the last carriage return on a line or -- if the last carriage return
> > is part of the line ending -- the second to last one. After that the
> > line will start with a file name.
> >
> Which makes me wonder *how* to get rid of those carriage returns.
>
I ended up with the following in my makefile:
============= [ Makefile ] ==================
BPC=bpc.exe
BPC_SED_THERAPY=| sed -e s/[a-zA-Z0-9\-_.$@]\+([0-9]\+)\r//g
ASM=nasm.exe
ASMFLAGS=-g -f obj
all: test.exe
clean:
rm -f *.exe *.obj *~ *.*~
# additional specific dependencies,
# not inferrable from the generic rules:
test.exe: pci.obj
%.exe: %.pas
-$(BPC) $< $(BPC_SED_THERAPY)
%.tpu: %.pas
-$(BPC) $< $(BPC_SED_THERAPY)
%.obj: %.asm
$(ASM) $(ASMFLAGS) -o $@ $<
============= [ /Makefile ] ==================
And, based on the suggestion by Mr. Fritz, my .vimrc now contains
autocmd FileType pascal set errorformat^=%f(%l):\ %trror\ %n:\ %m
Thanks for helping me out of those two pitfalls gentlemen :-)
Frank Rysanek
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment