[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  Schedule::Load
  SVN::S4
  Synopsys-modes
  SystemPerl
  Verilog-Pli
  Voneline
  Vregs
General Info
  Papers

Issue #308

Indenting/Highlighting user defined types

Added by Jonathan Greenlaw over 1 year ago. Updated about 1 year ago.

Status:Feature Start date:12/16/2010
Priority:Normal Due date:
Assignee:Michael McNamara % Done:

0%

Category:Indents
Target version:-

Description

Indenting and highlighting does not recognize user defined types as specified by the verilog-typedef-regexp variable.

History

Updated by Wilson Snyder over 1 year ago

  • Category set to Indents
  • Status changed from New to Feature
  • Assignee set to Michael McNamara

Thanks for filing.

Updated by Michael McNamara about 1 year ago

Hmm, this is way difficult. I like Wilson's idea of using verilog-typedef-regexp as the single way to tell emacs how to indent as well; but the problem is verilog-typedef-regexp is defined to match just a subset of the type, as for example if I use _t as a subscript for my types, as in: typedef reg[31:0] word_t; typedef reg[7:0] byte_t;

then I would (setq verilog-typedef-regexp "_t$")

Better for the indent part would be if I did (setq verilog-typedef-regexp "\\sw+_t$") I.E. something that would match the entire "word_t" instead of just the "_t" part

Also available in: Atom