2006-08-26 04:46:29 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2007-06-18 00:03:03 -05:00
|
|
|
<!--
|
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
This file is part of GtkSourceView
|
|
|
|
|
2007-06-18 00:03:03 -05:00
|
|
|
Author: Paolo Borelli <pborelli@gnome.org>
|
|
|
|
Copyright (C) 2003-2007 Paolo Borelli
|
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
GtkSourceView is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
2007-06-18 00:03:03 -05:00
|
|
|
License as published by the Free Software Foundation; either
|
2011-01-05 22:45:36 -08:00
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
2007-06-18 00:03:03 -05:00
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
GtkSourceView is distributed in the hope that it will be useful,
|
2007-06-18 00:03:03 -05:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2011-01-05 22:45:36 -08:00
|
|
|
Lesser General Public License for more details.
|
2007-06-18 00:03:03 -05:00
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
2007-06-18 00:03:03 -05:00
|
|
|
|
|
|
|
-->
|
2007-05-06 07:51:26 -05:00
|
|
|
<language id="verilog" _name="Verilog" version="2.0" _section="Sources">
|
|
|
|
<metadata>
|
|
|
|
<property name="mimetypes">text/x-verilog-src</property>
|
|
|
|
<property name="globs">*.v</property>
|
|
|
|
<property name="line-comment-start">//</property>
|
|
|
|
<property name="block-comment-start">/*</property>
|
|
|
|
<property name="block-comment-end">*/</property>
|
|
|
|
</metadata>
|
|
|
|
|
|
|
|
<styles>
|
|
|
|
<style id="comment" _name="Comment" map-to="def:comment"/>
|
2011-01-05 22:45:36 -08:00
|
|
|
<style id="string" _name="String" map-to="def:string"/>
|
2013-12-06 17:03:17 -08:00
|
|
|
<style id="printf" _name="printf Conversion" map-to="def:special-char"/>
|
2011-01-05 22:45:36 -08:00
|
|
|
<style id="escaped-character" _name="Escaped Character" map-to="def:special-char"/>
|
2007-05-06 07:51:26 -05:00
|
|
|
<style id="error" _name="Error" map-to="def:error"/>
|
|
|
|
<style id="compiler-directive" _name="Compiler Directive" map-to="def:preprocessor"/>
|
2011-01-05 22:45:36 -08:00
|
|
|
<style id="ieee-system-task" _name="IEEE System Task" map-to="def:keyword"/>
|
|
|
|
<style id="lrm-additional-system-task" _name="LRM Additional System Task" map-to="def:keyword"/>
|
2007-05-06 07:51:26 -05:00
|
|
|
<style id="keyword" _name="Keyword" map-to="def:keyword"/>
|
|
|
|
<style id="gate" _name="Gate" map-to="def:keyword"/>
|
2007-09-09 14:21:19 -05:00
|
|
|
<style id="type" _name="Type" map-to="def:type"/>
|
2007-05-06 07:51:26 -05:00
|
|
|
<style id="base-n-integer" _name="Base-N Integer" map-to="def:base-n-integer"/>
|
2011-01-05 22:45:36 -08:00
|
|
|
<style id="real-number" _name="Real number" map-to="def:floating-point"/>
|
|
|
|
<style id="integer-number" _name="Integer Number" map-to="def:number"/>
|
2007-05-06 07:51:26 -05:00
|
|
|
</styles>
|
|
|
|
|
|
|
|
<definitions>
|
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
<context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
|
2007-06-20 23:37:33 -05:00
|
|
|
<start>//</start>
|
2007-05-06 07:51:26 -05:00
|
|
|
<include>
|
|
|
|
<context ref="def:in-line-comment"/>
|
|
|
|
</include>
|
|
|
|
</context>
|
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
<context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
|
2007-06-20 23:37:33 -05:00
|
|
|
<start>/\*</start>
|
|
|
|
<end>\*/</end>
|
2007-05-06 07:51:26 -05:00
|
|
|
<include>
|
|
|
|
<context ref="def:in-comment"/>
|
|
|
|
</include>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="close-comment-outside-comment" style-ref="error">
|
2007-06-20 23:37:33 -05:00
|
|
|
<match>\*/(?!\*)</match>
|
2007-05-06 07:51:26 -05:00
|
|
|
</context>
|
|
|
|
|
2013-12-06 17:03:17 -08:00
|
|
|
<context id="printf" style-ref="printf" extend-parent="false">
|
|
|
|
<match extended="true">
|
|
|
|
\%\%|\%
|
|
|
|
0? # truncation
|
|
|
|
(?:[1-9][0-9]*|\*)? # width
|
|
|
|
(?:\.\-?(?:[0-9]+|\*))? # precision
|
|
|
|
[bBoOdDhHeEfFtTsSmMlL] # format specifier
|
|
|
|
</match>
|
|
|
|
</context>
|
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
<define-regex id="escaped-character" extended="true">
|
|
|
|
\\( # leading backslash
|
|
|
|
[\\\"\'nt] # escaped character
|
|
|
|
)
|
|
|
|
</define-regex>
|
|
|
|
|
|
|
|
<context id="string" style-ref="string" end-at-line-end="true" class="string" class-disabled="no-spell-check">
|
|
|
|
<start>"</start>
|
|
|
|
<end>"</end>
|
|
|
|
<include>
|
2013-12-06 17:03:17 -08:00
|
|
|
<context ref="printf"/>
|
2011-01-05 22:45:36 -08:00
|
|
|
<context id="escaped-character" style-ref="escaped-character">
|
|
|
|
<match>\%{escaped-character}</match>
|
|
|
|
</context>
|
|
|
|
<context ref="def:line-continue"/>
|
|
|
|
</include>
|
|
|
|
</context>
|
|
|
|
|
2007-05-06 07:51:26 -05:00
|
|
|
<context id="compiler-directive" style-ref="compiler-directive">
|
|
|
|
<prefix>`</prefix>
|
|
|
|
<keyword>celldefine</keyword>
|
|
|
|
<keyword>default_nettype</keyword>
|
|
|
|
<keyword>define</keyword>
|
|
|
|
<keyword>else</keyword>
|
|
|
|
<keyword>elsif</keyword>
|
|
|
|
<keyword>endcelldefine</keyword>
|
|
|
|
<keyword>endif</keyword>
|
|
|
|
<keyword>ifdef</keyword>
|
|
|
|
<keyword>ifndef</keyword>
|
|
|
|
<keyword>include</keyword>
|
|
|
|
<keyword>line</keyword>
|
|
|
|
<keyword>nounconnected_drive</keyword>
|
|
|
|
<keyword>resetall</keyword>
|
|
|
|
<keyword>timescale</keyword>
|
|
|
|
<keyword>unconnected_drive</keyword>
|
|
|
|
<keyword>undef</keyword>
|
|
|
|
</context>
|
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
<!-- System tasks as mandated by: IEEE Standard for Verilog Hardware Description Language (IEEE-1364-2005). -->
|
|
|
|
<context id="ieee-system-task" style-ref="ieee-system-task">
|
|
|
|
<prefix>\$</prefix>
|
|
|
|
<keyword>acos</keyword>
|
|
|
|
<keyword>acosh</keyword>
|
|
|
|
<keyword>asin</keyword>
|
|
|
|
<keyword>asinh</keyword>
|
|
|
|
<keyword>atan</keyword>
|
|
|
|
<keyword>atan2</keyword>
|
|
|
|
<keyword>atanh</keyword>
|
|
|
|
<keyword>async\$and\$array</keyword>
|
|
|
|
<keyword>async\$and\$plane</keyword>
|
|
|
|
<keyword>async\$nand\$array</keyword>
|
|
|
|
<keyword>async\$nand\$plane</keyword>
|
|
|
|
<keyword>async\$or\$array</keyword>
|
|
|
|
<keyword>async\$or\$plane</keyword>
|
|
|
|
<keyword>async\$nor\$array</keyword>
|
|
|
|
<keyword>async\$nor\$plane</keyword>
|
|
|
|
<keyword>bitstoreal</keyword>
|
|
|
|
<keyword>ceil</keyword>
|
|
|
|
<keyword>cos</keyword>
|
|
|
|
<keyword>cosh</keyword>
|
|
|
|
<keyword>clog2</keyword>
|
|
|
|
<keyword>display</keyword>
|
|
|
|
<keyword>displayb</keyword>
|
|
|
|
<keyword>displayh</keyword>
|
|
|
|
<keyword>displayo</keyword>
|
|
|
|
<keyword>dist_chi_square</keyword>
|
|
|
|
<keyword>dist_erlang</keyword>
|
|
|
|
<keyword>dist_exponential</keyword>
|
|
|
|
<keyword>dist_normal</keyword>
|
|
|
|
<keyword>dist_poisson</keyword>
|
|
|
|
<keyword>dist_t</keyword>
|
|
|
|
<keyword>dist_uniform</keyword>
|
|
|
|
<keyword>dummpall</keyword>
|
|
|
|
<keyword>dumpfile</keyword>
|
|
|
|
<keyword>dumpflush</keyword>
|
|
|
|
<keyword>dumplimit</keyword>
|
|
|
|
<keyword>dumpoff</keyword>
|
|
|
|
<keyword>dumpon</keyword>
|
|
|
|
<keyword>dumpvars</keyword>
|
|
|
|
<keyword>exp</keyword>
|
|
|
|
<keyword>fclose</keyword>
|
|
|
|
<keyword>fdisplay</keyword>
|
|
|
|
<keyword>fdisplayb</keyword>
|
|
|
|
<keyword>fdisplayh</keyword>
|
|
|
|
<keyword>fdisplayo</keyword>
|
|
|
|
<keyword>feof</keyword>
|
|
|
|
<keyword>ferror</keyword>
|
|
|
|
<keyword>fflush</keyword>
|
|
|
|
<keyword>fgetc</keyword>
|
|
|
|
<keyword>fgets</keyword>
|
|
|
|
<keyword>finish</keyword>
|
|
|
|
<keyword>floor</keyword>
|
|
|
|
<keyword>fmonitor</keyword>
|
|
|
|
<keyword>fmonitorb</keyword>
|
|
|
|
<keyword>fmonitorh</keyword>
|
|
|
|
<keyword>fmonitoro</keyword>
|
|
|
|
<keyword>fopen</keyword>
|
|
|
|
<keyword>fread</keyword>
|
|
|
|
<keyword>fscanf</keyword>
|
|
|
|
<keyword>fseek</keyword>
|
|
|
|
<keyword>fstrobe</keyword>
|
|
|
|
<keyword>fstrobeb</keyword>
|
|
|
|
<keyword>fstrobeh</keyword>
|
|
|
|
<keyword>fstrobeo</keyword>
|
|
|
|
<keyword>ftell</keyword>
|
|
|
|
<keyword>fwrite</keyword>
|
|
|
|
<keyword>fwriteb</keyword>
|
|
|
|
<keyword>fwriteh</keyword>
|
|
|
|
<keyword>fwriteo</keyword>
|
|
|
|
<keyword>hold</keyword>
|
|
|
|
<keyword>hypot</keyword>
|
|
|
|
<keyword>itor</keyword>
|
|
|
|
<keyword>ln</keyword>
|
|
|
|
<keyword>log10</keyword>
|
|
|
|
<keyword>monitor</keyword>
|
|
|
|
<keyword>monitorb</keyword>
|
|
|
|
<keyword>monitorh</keyword>
|
|
|
|
<keyword>monitoro</keyword>
|
|
|
|
<keyword>monitoroff</keyword>
|
|
|
|
<keyword>monitoron</keyword>
|
|
|
|
<keyword>nochange</keyword>
|
|
|
|
<keyword>period</keyword>
|
|
|
|
<keyword>pow</keyword>
|
|
|
|
<keyword>printtimescale</keyword>
|
|
|
|
<keyword>q_add</keyword>
|
|
|
|
<keyword>q_exam</keyword>
|
|
|
|
<keyword>q_full</keyword>
|
|
|
|
<keyword>q_initialize</keyword>
|
|
|
|
<keyword>q_remove</keyword>
|
|
|
|
<keyword>random</keyword>
|
|
|
|
<keyword>readmemb</keyword>
|
|
|
|
<keyword>readmemh</keyword>
|
|
|
|
<keyword>realtime</keyword>
|
|
|
|
<keyword>realtobits</keyword>
|
|
|
|
<keyword>recovery</keyword>
|
|
|
|
<keyword>rewind</keyword>
|
|
|
|
<keyword>rtoi</keyword>
|
|
|
|
<keyword>sdf_annotate</keyword>
|
|
|
|
<keyword>setup</keyword>
|
|
|
|
<keyword>setuphold</keyword>
|
|
|
|
<keyword>sformat</keyword>
|
|
|
|
<keyword>signed</keyword>
|
|
|
|
<keyword>sin</keyword>
|
|
|
|
<keyword>sinh</keyword>
|
|
|
|
<keyword>skew</keyword>
|
|
|
|
<keyword>sqrt</keyword>
|
|
|
|
<keyword>sscanf</keyword>
|
|
|
|
<keyword>stime</keyword>
|
|
|
|
<keyword>stop</keyword>
|
|
|
|
<keyword>strobe</keyword>
|
|
|
|
<keyword>strobeb</keyword>
|
|
|
|
<keyword>strobeh</keyword>
|
|
|
|
<keyword>strobeo</keyword>
|
|
|
|
<keyword>swrite</keyword>
|
|
|
|
<keyword>swriteb</keyword>
|
|
|
|
<keyword>swriteh</keyword>
|
|
|
|
<keyword>swriteo</keyword>
|
|
|
|
<keyword>sync\$and\$array</keyword>
|
|
|
|
<keyword>sync\$and\$plane</keyword>
|
|
|
|
<keyword>sync\$nand\$array</keyword>
|
|
|
|
<keyword>sync\$nand\$plane</keyword>
|
|
|
|
<keyword>sync\$or\$array</keyword>
|
|
|
|
<keyword>sync\$or\$plane</keyword>
|
|
|
|
<keyword>sync\$nor\$array</keyword>
|
|
|
|
<keyword>sync\$nor\$plane</keyword>
|
|
|
|
<keyword>tan</keyword>
|
|
|
|
<keyword>tanh</keyword>
|
|
|
|
<keyword>test\$plusargs</keyword>
|
|
|
|
<keyword>time</keyword>
|
|
|
|
<keyword>timeformat</keyword>
|
|
|
|
<keyword>ungetc</keyword>
|
|
|
|
<keyword>unsigned</keyword>
|
|
|
|
<keyword>value\$plusargs</keyword>
|
|
|
|
<keyword>width</keyword>
|
|
|
|
<keyword>write</keyword>
|
|
|
|
<keyword>writeb</keyword>
|
|
|
|
<keyword>writeh</keyword>
|
|
|
|
<keyword>writeo</keyword>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<!-- Common non-standard system functions as listed in the Doulos Verilog Golden Reference Guide. -->
|
|
|
|
<context id="lrm-additional-system-task" style-ref="lrm-additional-system-task">
|
|
|
|
<prefix>\$</prefix>
|
|
|
|
<keyword>countdrivers</keyword>
|
|
|
|
<keyword>getpattern</keyword>
|
|
|
|
<keyword>incsave</keyword>
|
|
|
|
<keyword>key</keyword>
|
|
|
|
<keyword>list</keyword>
|
|
|
|
<keyword>log</keyword>
|
|
|
|
<keyword>nokey</keyword>
|
|
|
|
<keyword>nolog</keyword>
|
|
|
|
<keyword>reset</keyword>
|
|
|
|
<keyword>reset_count</keyword>
|
|
|
|
<keyword>reset_value</keyword>
|
|
|
|
<keyword>restart</keyword>
|
|
|
|
<keyword>save</keyword>
|
|
|
|
<keyword>scale</keyword>
|
|
|
|
<keyword>scope</keyword>
|
|
|
|
<keyword>showscopes</keyword>
|
|
|
|
<keyword>showvars</keyword>
|
|
|
|
<keyword>sreadmemb</keyword>
|
|
|
|
<keyword>sreadmemh</keyword>
|
|
|
|
</context>
|
|
|
|
|
2007-05-06 07:51:26 -05:00
|
|
|
<context id="keywords" style-ref="keyword">
|
|
|
|
<keyword>always</keyword>
|
|
|
|
<keyword>assign</keyword>
|
2009-04-19 03:00:38 -07:00
|
|
|
<keyword>attribute</keyword>
|
2007-05-06 07:51:26 -05:00
|
|
|
<keyword>begin</keyword>
|
|
|
|
<keyword>case</keyword>
|
|
|
|
<keyword>casex</keyword>
|
|
|
|
<keyword>casez</keyword>
|
|
|
|
<keyword>deassign</keyword>
|
|
|
|
<keyword>default</keyword>
|
|
|
|
<keyword>defparam</keyword>
|
|
|
|
<keyword>disable</keyword>
|
|
|
|
<keyword>edge</keyword>
|
|
|
|
<keyword>else</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>end</keyword>
|
2009-04-19 03:00:38 -07:00
|
|
|
<keyword>endattribute</keyword>
|
2007-05-06 07:51:26 -05:00
|
|
|
<keyword>endcase</keyword>
|
|
|
|
<keyword>endfunction</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>endgenerate</keyword>
|
2009-04-19 03:00:38 -07:00
|
|
|
<keyword>endmodule</keyword>
|
2007-05-06 07:51:26 -05:00
|
|
|
<keyword>endprimitive</keyword>
|
|
|
|
<keyword>endspecify</keyword>
|
|
|
|
<keyword>endtable</keyword>
|
|
|
|
<keyword>endtask</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>for</keyword>
|
2007-05-06 07:51:26 -05:00
|
|
|
<keyword>force</keyword>
|
|
|
|
<keyword>forever</keyword>
|
2009-04-19 03:00:38 -07:00
|
|
|
<keyword>fork</keyword>
|
2007-05-06 07:51:26 -05:00
|
|
|
<keyword>function</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>generate</keyword>
|
2007-05-06 07:51:26 -05:00
|
|
|
<keyword>highz0</keyword>
|
|
|
|
<keyword>highz1</keyword>
|
|
|
|
<keyword>if</keyword>
|
|
|
|
<keyword>ifnone</keyword>
|
|
|
|
<keyword>initial</keyword>
|
|
|
|
<keyword>join</keyword>
|
|
|
|
<keyword>large</keyword>
|
|
|
|
<keyword>macromodule</keyword>
|
|
|
|
<keyword>medium</keyword>
|
|
|
|
<keyword>module</keyword>
|
|
|
|
<keyword>negedge</keyword>
|
|
|
|
<keyword>posedge</keyword>
|
|
|
|
<keyword>primitive</keyword>
|
|
|
|
<keyword>pull0</keyword>
|
|
|
|
<keyword>pull1</keyword>
|
|
|
|
<keyword>release</keyword>
|
|
|
|
<keyword>repeat</keyword>
|
2009-04-19 03:00:38 -07:00
|
|
|
<keyword>signed</keyword>
|
2007-05-06 07:51:26 -05:00
|
|
|
<keyword>small</keyword>
|
|
|
|
<keyword>specify</keyword>
|
|
|
|
<keyword>specparam</keyword>
|
2009-04-19 03:00:38 -07:00
|
|
|
<keyword>strength</keyword>
|
2007-05-06 07:51:26 -05:00
|
|
|
<keyword>strong0</keyword>
|
|
|
|
<keyword>strong1</keyword>
|
2009-04-19 03:00:38 -07:00
|
|
|
<keyword>table</keyword>
|
2007-05-06 07:51:26 -05:00
|
|
|
<keyword>task</keyword>
|
2009-04-19 03:00:38 -07:00
|
|
|
<keyword>unsigned</keyword>
|
2007-05-06 07:51:26 -05:00
|
|
|
<keyword>wait</keyword>
|
|
|
|
<keyword>weak0</keyword>
|
|
|
|
<keyword>weak1</keyword>
|
|
|
|
<keyword>while</keyword>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="gates" style-ref="gate">
|
|
|
|
<keyword>and</keyword>
|
|
|
|
<keyword>buf</keyword>
|
|
|
|
<keyword>bufif0</keyword>
|
|
|
|
<keyword>bufif1</keyword>
|
|
|
|
<keyword>cmos</keyword>
|
|
|
|
<keyword>nand</keyword>
|
|
|
|
<keyword>nmos</keyword>
|
|
|
|
<keyword>nor</keyword>
|
|
|
|
<keyword>not</keyword>
|
|
|
|
<keyword>notif0</keyword>
|
|
|
|
<keyword>notif1</keyword>
|
|
|
|
<keyword>or</keyword>
|
|
|
|
<keyword>pmos</keyword>
|
|
|
|
<keyword>pullup</keyword>
|
|
|
|
<keyword>pulldown</keyword>
|
|
|
|
<keyword>rcmos</keyword>
|
|
|
|
<keyword>rnmos</keyword>
|
|
|
|
<keyword>rpmos</keyword>
|
|
|
|
<keyword>rtran</keyword>
|
|
|
|
<keyword>rtranif0</keyword>
|
|
|
|
<keyword>rtranif1</keyword>
|
|
|
|
<keyword>tran</keyword>
|
|
|
|
<keyword>tranif0</keyword>
|
|
|
|
<keyword>tranif1</keyword>
|
|
|
|
<keyword>xnor</keyword>
|
|
|
|
<keyword>xor</keyword>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="types" style-ref="type">
|
|
|
|
<keyword>event</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>genvar</keyword>
|
2007-05-06 07:51:26 -05:00
|
|
|
<keyword>inout</keyword>
|
|
|
|
<keyword>input</keyword>
|
|
|
|
<keyword>integer</keyword>
|
|
|
|
<keyword>output</keyword>
|
|
|
|
<keyword>parameter</keyword>
|
|
|
|
<keyword>real</keyword>
|
2011-01-05 22:45:36 -08:00
|
|
|
<keyword>reg</keyword>
|
2007-05-06 07:51:26 -05:00
|
|
|
<keyword>realtime</keyword>
|
|
|
|
<keyword>scalared</keyword>
|
|
|
|
<keyword>supply0</keyword>
|
|
|
|
<keyword>supply1</keyword>
|
|
|
|
<keyword>time</keyword>
|
|
|
|
<keyword>tri</keyword>
|
|
|
|
<keyword>tri0</keyword>
|
|
|
|
<keyword>tri1</keyword>
|
|
|
|
<keyword>triand</keyword>
|
|
|
|
<keyword>trior</keyword>
|
|
|
|
<keyword>trireg</keyword>
|
|
|
|
<keyword>vectored</keyword>
|
|
|
|
<keyword>wand</keyword>
|
|
|
|
<keyword>wire</keyword>
|
|
|
|
<keyword>wor</keyword>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="binary-number" style-ref="base-n-integer">
|
|
|
|
<match extended="true">
|
|
|
|
(?<![\w\.])
|
|
|
|
[1-9][0-9]*'[bB][0-1_xXzZ?]+
|
|
|
|
(?![\w\.])
|
|
|
|
</match>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="octal-number" style-ref="base-n-integer">
|
|
|
|
<match extended="true">
|
|
|
|
(?<![\w\.])
|
|
|
|
[1-9][0-9]*'[oO][0-7_xXzZ?]+
|
|
|
|
(?![\w\.])
|
|
|
|
</match>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="decimal-number" style-ref="base-n-integer">
|
|
|
|
<match extended="true">
|
|
|
|
(?<![\w\.])
|
|
|
|
[1-9][0-9]*'[dD][0-9_xXzZ?]+
|
|
|
|
(?![\w\.])
|
|
|
|
</match>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="hexadecimal-number" style-ref="base-n-integer">
|
|
|
|
<match extended="true">
|
|
|
|
(?<![\w\.])
|
|
|
|
[1-9][0-9]*'[hH][0-9a-fA-F_xXzZ?]+
|
|
|
|
(?![\w\.])
|
|
|
|
</match>
|
|
|
|
</context>
|
|
|
|
|
2011-01-05 22:45:36 -08:00
|
|
|
<define-regex id="exponent">[Ee][+-]?[0-9][0-9_]*</define-regex>
|
|
|
|
<context id="real-number" style-ref="real-number">
|
|
|
|
<match extended="true">
|
|
|
|
(?<![\w\.])
|
|
|
|
[0-9][0-9_]*\.[0-9][0-9_]*\%{exponent}?
|
|
|
|
(?![\w\.])
|
|
|
|
</match>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="integer-number" style-ref="integer-number">
|
|
|
|
<match extended="true">
|
|
|
|
(?<![\w\.])
|
|
|
|
[0-9][0-9_]*(E[+]?[0-9][0-9_]*)?
|
|
|
|
(?![\w\.])
|
|
|
|
</match>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
<context id="verilog" class="no-spell-check">
|
2007-05-06 07:51:26 -05:00
|
|
|
<include>
|
|
|
|
<context ref="line-comment"/>
|
|
|
|
<context ref="block-comment"/>
|
|
|
|
<context ref="close-comment-outside-comment"/>
|
2011-01-05 22:45:36 -08:00
|
|
|
<context ref="string"/>
|
2007-05-06 07:51:26 -05:00
|
|
|
<context ref="compiler-directive"/>
|
2011-01-05 22:45:36 -08:00
|
|
|
<context ref="ieee-system-task"/>
|
|
|
|
<context ref="lrm-additional-system-task"/>
|
2007-05-06 07:51:26 -05:00
|
|
|
<context ref="keywords"/>
|
|
|
|
<context ref="gates"/>
|
|
|
|
<context ref="types"/>
|
|
|
|
<context ref="binary-number"/>
|
|
|
|
<context ref="octal-number"/>
|
|
|
|
<context ref="decimal-number"/>
|
|
|
|
<context ref="hexadecimal-number"/>
|
2011-01-05 22:45:36 -08:00
|
|
|
<context ref="real-number"/>
|
|
|
|
<context ref="integer-number"/>
|
2007-05-06 07:51:26 -05:00
|
|
|
</include>
|
|
|
|
</context>
|
|
|
|
|
|
|
|
</definitions>
|
2006-08-26 04:46:29 -05:00
|
|
|
|
|
|
|
</language>
|