<p>For a verilog file, the variables list parses the old (1995) style verilog module declarations.  Verilog 2001 enhanced the syntax and seems to confuse Geany....</p>

<p>1995 syntax:</p>

<p>module (foo, bar, buz);<br>
input foo; // foo port<br>
output bar; // bar port<br>
output buz; // buz port<br>
reg buz; // buz variable</p>

<p>2001 syntax:</p>

<p>module (<br>
input wire foo, // foo port is a wire<br>
output wire bar, // bar port is a wire<br>
output reg buz // buz port is a variable<br>
);</p>

<p>// note: the "wire" is optional  and the ports could have been declared with or without</p>

<p>Geany variables list seems to get confused by the 2001 style.  It seems to parse the wire keyword as the variable name if I keep the optional "wire" keyword:<br>
<a href="https://cloud.githubusercontent.com/assets/14856598/10121213/521dc426-64af-11e5-8c40-bc47d504da8d.png" target="_blank"><img src="https://cloud.githubusercontent.com/assets/14856598/10121213/521dc426-64af-11e5-8c40-bc47d504da8d.png" alt="image" style="max-width:100%;"></a></p>

<p>If I omit the "wire" keyword, Geany still gets confused, but in a different way. It seems to parse every other variable and then parse the "input" or "output" keywords as variables in some cases:<br>
<a href="https://cloud.githubusercontent.com/assets/14856598/10121233/11c50b7c-64b0-11e5-9680-b3421e7c5bea.png" target="_blank"><img src="https://cloud.githubusercontent.com/assets/14856598/10121233/11c50b7c-64b0-11e5-9680-b3421e7c5bea.png" alt="image" style="max-width:100%;"></a></p>

<p>If someone who knows the code base can even point me to the module(s) doing the parsing for the variables, I may be able to help create the fix/enhancement for this.  I'd be happy to try anyway. I am not familiar with the Geany code base so just getting started seems like an insurmountable task.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/issues/670">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ1imtl7AkIEOftIPelfE2jFhhr7Qks5o12qbgaJpZM4GEbsD.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/670"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>