[Geany-Users] Error regular expression

Matthew Brush mbrush at xxxxx
Sat May 10 18:07:49 UTC 2014


On 14-05-10 07:59 AM, Slavko Kocjancic wrote:
> Hello...
>
> I have some strange compiler but want to have option for geany to
> highlight the line with error.
> But I have no idea how to setup 'error regular expression' to manage that.
> In the output of compiler there are line describing error in format:
> path/file space lineNumber error message.
> for example:
>
> /home/slavko/PLC/plc.asm 94 nepoznan ukaz >MMOV
>
> thet means the file '/home/slavko/PLC/plc.asm' has error in line 94 and
> 'nepoznan ukaz >MMOV' describe error.
>
> So what expression i need tor that?
>

I don't know about the "error regular expression" groups and such but in 
regular PCRE, this might do it:

     ^(?<file>.+?) (?<line>[0-9]+) (?<msg>.+?)$

Cheers,
Matthew Brush


More information about the Users mailing list