简体   繁体   English

缺少使用公司模式的Verilog模式的完整候选人

[英]missing complete candidate for verilog-mode with company-mode

I am using company-mode to do the auto complete in Verilog-mode. 我正在使用公司模式在Verilog模式下执行自动完成。 I want to write end and start a newline. 我想写end ,并开始一个新行。 But after I key in end , company-mode gives me the candidate list( endfunction , endclass , endmodule , endpackage ). 但是在键入end ,公司模式会给我候选列表( endfunctionendclassendmoduleendpackage )。 I have to put an extra SPACE after end before I press ENTER. 在按ENTER键之前,我必须在end后加上一个空格。

I am not sure how could I add end to that candidate list? 我不确定如何将end添加到该候选人列表中? or I should file this issue to company-mode developer or Verilog-mode developer? 还是应该将此问题提交给公司模式开发人员或Verilog模式开发人员?

company-mode doesn't support verilog-mode yet. 公司模式尚不支持Verilog模式。 But it can be fixed by add verilog keywords to solve this problem 但是可以通过添加verilog关键字来解决此问题

(require 'company)
(require 'verilog-mode)
(add-to-list 'company-keywords-alist (cons 'verilog-mode verilog-keywords))

Hope some can create a proper backend for verilog-mode. 希望一些人可以为verilog-mode创建适当的后端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM