Sublime Forum

file_regex grouping order

#1

I am trying to develop a *.sublime-build for the Keil compiler. Unfortunately, this compiler returns error messages in the following format:

*** ERROR C141 IN LINE 50 OF src/MAIN.c: syntax error near '}'

The “file_regex” argument assumes that the order is file name and then line number. I have not been able to come up with a regexp that can map this correctly. Is it possible for “file_regex” to support named groups or some other mechanism so I can parse these errors? This question has been asked before ( viewtopic.php?f=3&t=8078&p=34336&hilit=file+regex#p34336 ) but it was not answered.

Thank you,
Daniel

1 Like