From 54fcf126f68bae18809daa7a4a3ec8ae1264265a Mon Sep 17 00:00:00 2001
From: Stefan Frederik
Date: Tue, 11 Jan 2022 04:17:17 +0100
Subject: [PATCH] doc updates (sym attributes)
---
doc/xschem_man/symbol_property_syntax.html | 9 +++++++--
src/token.c | 2 +-
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/doc/xschem_man/symbol_property_syntax.html b/doc/xschem_man/symbol_property_syntax.html
index c7025cf2..55bf7808 100644
--- a/doc/xschem_man/symbol_property_syntax.html
+++ b/doc/xschem_man/symbol_property_syntax.html
@@ -131,9 +131,9 @@ type=nmos
- In recent xschem versions a $ prefixed attribute (example: $var) can be used
+ In recent xschem versions a % prefixed attribute (example: %var) can be used
instead of a @ prefix. The only difference is that if no matching attribute is defined
- in instance the $var resolves to var instead of an empty string.
+ in instance the %var resolves to var instead of an empty string.
@@ -393,6 +393,11 @@ verilog_format="xnor #(@risedel , @falldel ) @name ( @@Z , @@A , @@B );"
This attribute contains a SPICE .model or .subckt specification (device_model=".model D1N4148 D ....")
that will be printed at end of netlist only once for the specified component (D1N4148 in the example).
+ schematic
+
+ This attribute specifies an alternate schematic file to open when descending into the subcircuit:
+
schematic=inv_2.sch
+
PREDEFINED SYMBOL VALUES
diff --git a/src/token.c b/src/token.c
index 6596a884..db7c922b 100644
--- a/src/token.c
+++ b/src/token.c
@@ -420,7 +420,7 @@ const char *list_tokens(const char *s, int with_quotes)
/* 0: eat unescaped backslashes and unescaped double quotes (") */
/* 1: return backslashes and quotes as part of the token value if they are present */
/* bit 1: */
-/* 1: do not perform tck_hook2 substitution */
+/* 1: do not perform tcl_hook2 substitution */
const char *get_tok_value(const char *s,const char *tok, int with_quotes)
{