summaryrefslogtreecommitdiff
path: root/data/netlist.lang
diff options
context:
space:
mode:
Diffstat (limited to 'data/netlist.lang')
-rw-r--r--data/netlist.lang72
1 files changed, 72 insertions, 0 deletions
diff --git a/data/netlist.lang b/data/netlist.lang
new file mode 100644
index 0000000..8672f37
--- /dev/null
+++ b/data/netlist.lang
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<language id="netlist" _name="Netlist" version="2.0" _section="Markup">
+ <metadata>
+ <property name="mimetypes">application/x-oregano</property>
+ <property name="globs">*.netlist</property>
+ </metadata>
+
+ <styles>
+ <style id="comment" _name="Comment" map-to="def:comment"/>
+ <style id="floating-point" _name="Floating Point" map-to="def:floating-point"/>
+ <style id="decimal" _name="Decimal" map-to="def:decimal"/>
+ <style id="preprocessor" _name="Preprocessor" map-to="def:identifier"/>
+ <style id="keyword" _name="Keyword" map-to="def:keyword"/>
+ <style id="values" _name="Values" map-to="def:special-char"/>
+ </styles>
+
+ <definitions>
+ <context id="block-comment" style-ref="comment" end-at-line-end="true">
+ <start>\*</start>
+ </context>
+ <context id="decimal" style-ref="decimal">
+ <match>\b([1-9][0-9]*|0)([Uu]([Ll]|LL|ll)?|([Ll]|LL|ll)[Uu]?)?\b</match>
+ </context>
+ <context id="floating-point-number" style-ref="floating-point">
+ <match>\b([0-9]+[Ee][-]?[0-9]+|([0-9]*\.[0-9]+|[0-9]+\.)([Ee][-]?[0-9]+)?)[fFlL]?</match>
+ </context>
+ <context id="keywords" style-ref="keyword">
+ <keyword>print</keyword>
+ <keyword>tran</keyword>
+ <keyword>op</keyword>
+ <keyword>dc</keyword>
+ <keyword>options</keyword>
+ <keyword>end</keyword>
+ <keyword>ac</keyword>
+ <keyword>fourier</keyword>
+ </context>
+ <context id="entity" style-ref="values">
+ <match>(v|i)(\(.*\))</match>
+ </context>
+ <context id="common-macro" style-ref="preprocessor">
+ <keyword>UIC</keyword>
+ <keyword>OUT</keyword>
+ <keyword>TEMP</keyword>
+ <keyword>GMIN</keyword>
+ <keyword>ABSTOL</keyword>
+ <keyword>CHGTOL</keyword>
+ <keyword>RELTOL</keyword>
+ <keyword>VNTOL</keyword>
+ <keyword>ITL1</keyword>
+ <keyword>ITL2</keyword>
+ <keyword>ITL4</keyword>
+ <keyword>PIVREL</keyword>
+ <keyword>PIVTOL</keyword>
+ <keyword>TNOM</keyword>
+ <keyword>TRTOL</keyword>
+ <keyword>DEFAD</keyword>
+ <keyword>DEFAS</keyword>
+ <keyword>DEFL</keyword>
+ <keyword>DEFW</keyword>
+ </context>
+ <context id="netlist">
+ <include>
+ <context ref="block-comment"/>
+ <context ref="decimal"/>
+ <context ref="floating-point-number"/>
+ <context ref="keywords"/>
+ <context ref="entity"/>
+ <context ref="common-macro"/>
+ </include>
+ </context>
+ </definitions>
+</language>