Lines Matching full:symbol
9 It accepts an optional file to change the default symbol reference or to
48 ignore <type> <symbol>`
50 Removes the symbol from reference generation.
58 - A simple symbol name;
71 - symbol: for symbols defined within enums;
118 # We're calling each definition inside an enum as "symbol"
119 "symbol": {
200 for ln, c_type, symbol in self.ignore:
205 if symbol in d:
206 del d[symbol]
242 def store_type(self, ln, symbol_type: str, symbol: str,
245 Stores a new symbol at self.symbols under symbol_type.
255 # Determine ref_link based on symbol type
258 ref_name = symbol.lower()
270 ref_link = f"{ref_type}:`{symbol} <{ref_name}>`"
272 ref_link = f"`{symbol} <{ref_name}>`"
274 ref_link = symbol
276 self.symbols[symbol_type][symbol] = (f"{prefix}{ref_link}{suffix}", ln)
340 # 2. we want symbol replacement at the entire content, not
341 # just when the symbol is detected.
346 self.store_type(line_no, "symbol", match.group(1))
366 symbol = match.group(3)
367 self.store_type(line_no, "typedef", symbol, ref_name=name)
387 Print debug information containing the replacement rules per symbol.
399 for symbol, (ref, ln) in sorted(refs.items()):
400 print(f" #{ln:<5d} {symbol} -> {ref}")
417 # Delimiters to catch the entire symbol after escaped
423 for symbol, (replacement, _) in ref_dict.items():
424 symbol = re.escape(re.sub(r"([\_\`\*\<\>\&\\\\:\/])", r"\\\1", symbol))
425 text = re.sub(fr'{start_delim}{symbol}{end_delim}',
440 # Sort symbol types per description
459 for symbol, (ref, ln) in sorted(refs.items()):