Skip to content

Folding subcircuit and functions#9

Open
riduan wants to merge 3 commits into
lxTHU:masterfrom
riduan:folding-subckt-pwl
Open

Folding subcircuit and functions#9
riduan wants to merge 3 commits into
lxTHU:masterfrom
riduan:folding-subckt-pwl

Conversation

@riduan

@riduan riduan commented Apr 10, 2025

Copy link
Copy Markdown

No description provided.

lxTHU added a commit that referenced this pull request Jul 10, 2026
Major grammar overhaul (SPICE.tmLanguage +1036 lines):
- Hierarchical block support: .subckt/.ends, .lib/.endl, .control/.endc,
  .if/.elseif/.else/.endif, .data/.enddata, .model
- Device-specific highlighting for passive/active components and sources
- Engineering & scientific notation highlighting
- Math function, source function, and operator highlighting
- Spectre (Cadence) syntax support: subckt/ends, if/endif, statistics,
  process, section/endsection, control/endc

language-configuration.json:
- folding.markers + indentationRules covering all block structures,
  case-insensitive (JS regex has no (?i)), ')' as .model end marker
- This subsumes the folding-marker proposals in PR #6 and #9

Snippets:
- Expanded snippets.json with structure/analysis/measurement/output/
  elements/source functions/templates
- New snippets_spectre.json for Spectre commands
- Updated snippets_sources.json

Add test/folding_test.sp covering all foldable block types.
Add .vscodeignore to keep the published VSIX minimal.

Co-Authored-By: Claude <noreply@anthropic.com>
lxTHU added a commit that referenced this pull request Jul 10, 2026
Community-driven changes:
- Associate `.lis` (SPICE output listing) with the language — closes #8
- Add DSPF netlist to the roadmap, absorbing the intent of PR #5

Bump version to 0.2.2. Update README (Supported File Extensions,
new Roadmap section) and CHANGELOG with the 0.2.2 entry, including
acknowledgements for the folding-marker work informed by PR #6 and #9.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants