mirror of
https://github.com/trebonian/visual6502.git
synced 2024-06-17 21:29:59 +00:00
feature: find matches names on underscore-delimited components
This commit is contained in:
parent
27fb1d539e
commit
6db8836c5c
|
@ -346,6 +346,20 @@ function hiliteNodeList(){
|
||||||
transistors[name].bb[0],transistors[name].bb[2],
|
transistors[name].bb[0],transistors[name].bb[2],
|
||||||
transistors[name].bb[1],transistors[name].bb[3]
|
transistors[name].bb[1],transistors[name].bb[3]
|
||||||
]);
|
]);
|
||||||
|
} else {
|
||||||
|
// allow match of underscore-delimited components, so
|
||||||
|
// SUMS and dpc17 both match the node dpc17_SUMS
|
||||||
|
for(var i in nodenames){
|
||||||
|
re=new RegExp("(^" + name + "_|_" + name + "$)");
|
||||||
|
if (re.test(i)){
|
||||||
|
value = nodenames[i];
|
||||||
|
highlightThese.push(value);
|
||||||
|
report="node: " + value + ' ' + nodeName(value);
|
||||||
|
for(var s in nodes[value].segs)
|
||||||
|
seglist.push(nodes[value].segs[s]);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(highlightThese.length==0){
|
if(highlightThese.length==0){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user