捕获 emacs 编译模式的 pva 多行编译器输出
我想通过emacs编译hSpice pva。 但是,编译模式无法正确解析输出。
这是 pva 编译器生成的错误消息(pvaE 部分):
Parsing include file 'include/constants.vams'
Parsing include file 'include/disciplines.vams'
*pvaE* Syntax error, unsupported syntax or illegal keyword at/before 'vco_cal_dec'
file "/my/path/to/file/veriloga.va", line# 226
(ari_var>=0 ari_var<= 7) : ari_var2=16;
^
这是无法捕获上述输出的编译模式设置:
(defvar verilog-compilation-error-regexp-alist '("^\*pvaE\* .+\n\s+file \"\\(.+\\)\", line# \\([0-9]+\\)" 1 2))
(add-to-list 'compilation-error-regexp-alist verilog-compilation-error-regexp-alist)
非常感谢帮助修复此正则表达式!
I wish to compile hSpice pva through emacs.
However, compile-mode does not parse the output properly.
This is the error message the pva compiler generates (the pvaE section):
Parsing include file 'include/constants.vams'
Parsing include file 'include/disciplines.vams'
*pvaE* Syntax error, unsupported syntax or illegal keyword at/before 'vco_cal_dec'
file "/my/path/to/file/veriloga.va", line# 226
(ari_var>=0 ari_var<= 7) : ari_var2=16;
^
This is the compile mode settings that fail to capture the above output:
(defvar verilog-compilation-error-regexp-alist '("^\*pvaE\* .+\n\s+file \"\\(.+\\)\", line# \\([0-9]+\\)" 1 2))
(add-to-list 'compilation-error-regexp-alist verilog-compilation-error-regexp-alist)
Help fixing this regexp will be much appreciated !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
字符串中的空格语法是错误的。而不是“\s+”,它应该是“\\s-+”。
The whitespace syntax in your string is wrong. Instead of "\s+" it should be "\\s-+".