pvk7 / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

errorformat: match error numbers that contain letters #195

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
For example, the Renesas HEW compiler produces error in the following style: 

main.c(11) : C2225 (E) Undeclared name "FOOBAR"

What is the expected output? What do you see instead?

The error numbers (C2225 in the example) include a letter at the beginning.

The format specifier %n of 'efm' matches only a number.

Therefore it is not possible to match the complete error number C2225. Only the 
numerical part can be matched with the following format string: "C%n".

I suppose there will always be a compiler whose output is just a bit outside of 
the scope of Vim's errorformat.

I think one step to make the errorformat more versatile is by separating the 
meaning of a format specifier from the expression. In the example, the format 
specifier %n has the meaning "error number", but also the format of a legal 
error number ([0-9]+).

Original issue reported on code.google.com by usr.gen...@googlemail.com on 28 Jan 2014 at 9:00