Skip to content

Instantly share code, notes, and snippets.

@kcbanner
Last active March 27, 2023 03:30
Show Gist options
  • Save kcbanner/9e87a73b19c8ed5daede8ec78c439c37 to your computer and use it in GitHub Desktop.
Save kcbanner/9e87a73b19c8ed5daede8ec78c439c37 to your computer and use it in GitHub Desktop.
Regex for zig compiler output (parallel compatible)
(add-to-list
'compilation-error-regexp-alist-alist
'(zig
"^\\(\\(.*\\):\\([0-9]+\\):\\([0-9]+\\)\\): \\(note:.*\\)?\\(error:.*\\)?$"
2
3
4
(nil . 5)
1
(5 compilation-info-face)
(6 compilation-error-face)))
(delete 'cucumber compilation-error-regexp-alist)
(add-to-list 'compilation-error-regexp-alist 'zig)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment