Folding subcircuit and functions#9
Open
riduan wants to merge 3 commits into
Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.