[英]capturing pva multiline compiler output for emacs compile mode
I wish to compile hSpice pva through emacs. 我希望通过emacs编译hSpice pva。 However, compile-mode does not parse the output properly.
但是,编译模式不能正确解析输出。
This is the error message the pva compiler generates (the pvaE section): 这是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;
^
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 ! 帮助修复此正则表达式将不胜感激!
The whitespace syntax in your string is wrong. 字符串中的空格语法错误。 Instead of "\\s+" it should be "\\\\s-+".
代替“ \\ s +”,它应该是“ \\\\ s- +”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.