PWB uses tagged UNIX regular expressions to find the location of errors and warnings displayed in the Build Results window. The tagged portions of the message indicate the file and the location or token in error.
To define new messages for PWB to recognize, add a new Build:message switch definition to the [PWB] section of TOOLS.INI. The syntax for this switch is:
Build:message "pattern" [[file[[line[[column]]]] |token]]
The pattern is a macro string that specifies a tagged UNIX regular expression. The file, line, col, and token keywords indicate the meaning of each tagged subexpression.
For example, if the messages you want to match look like:
Error: Missing ';' on line 123 in SAMPLE.XYZ
Place the following setting in TOOLS.INI:
Build:message "^Error: .* on line \\(\\:z\\) in \\(\\:p\\)" \
file line
Note that each backslash in the regular expression is doubled within the macro string. This pattern uses the predefined expressions for integer (\:z) and path (\:p).