*.cir;*.CIR;*.Cir
[^\s{}(),;'=]+
^\s*(?=\+)
$
([^\s><&;,=/+\-*\^]?)^\s*\+
(\s[^\s><&(){};,=/+\-*\^]+|
(?![({])\s*[^\s><&(){};,=/+\-*\^]+)
(?=(\s*\=(?!(\s*\=))))
\b(and|buf|counter|dflop|inv|modulator|xor|or|phasedet|samplehold|schmitbuf|schmitinv|schmitt|srflop|varistor|ota)\b
params\:
^\s*[a-jl-z^0-9_\W]\S*([{}();'=,])
^\s*[a-jl-z]\S*
\s
((^\+\S*)?)\s
\b(?!(\s*[=<>(*\-+/]))
and
buf
counter
dflop
inv
modulator
xor
or
ota
phasedet
samplehold
schmitbuf
schmitinv
schmitt
srflop
varistor
\b
\b
value(?=(\s*[={]))
poly
laplace(?=(\s*[=({]))(?!(\s*\=))
freq(?=(\s*\{))
(?!(\=\s*))table
^\s*([,.]|\.\.)
\b
funcs
func
params
param
parma
text
^\s*
[a-z0-9_]*\b
k
\s
[:]
params
^[,.]
\b
nodealias
nodeset
meas
options
option
opts
opt
ic
step
lib
include
inc
backanno
savebias
save
loadbias
load
global
temp
ferret
wave
mach
machine
endmach
endmachine
^[,.]
\b
state
rule
output
^[,.]
\b
four
dc
ac
tran
op
tf
net
^[,.] ( end\b | (ends|subckt|model)\s+(?=(\%{chars})) )
$|\s
((ends|model|subckt)\s+)?\%{chars}(?=($|\s*?))
^[,.]
\b
ends
(\s[^\s><&(){};,=/+\-*\^]+|
(?![({])\s*[^\s><&(){};,=/+\-*\^]+)
(?=(\s*\=(?!(\s*\=))))
((^\s*[.](funcs|func))?)
\s+[^\s><&(){};,=/+\-*\^]+\s*(?=(\([^()]*\))\s+(\{))