Ticket #4316 (closed enhancement: fixed)
Add basic Ngspice syntax highlighting
Reported by: | gszymaszek | Owned by: | andrew_b |
---|---|---|---|
Priority: | minor | Milestone: | 4.8.28 |
Component: | mcedit | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: | committed-master |
Description
Ngspice is the open source spice simulator for electric and electronic circuits.
The attached patch adds basic support for highlighting Ngspice/SPICE circuit description files syntax. Two main contexts are defined:
- the default context, where the circuit is described,
- the control script context (between .control and .endc).
The default context highlights dot commands, circuit element instance names and model types. The control script context highlights supported functions/commands and known variables. Both contexts highlight comments and line continuation marks.
Other than two FIXMEs, it is a known issue the first line of the file is part of the default context, while in most cases it would contain the file title.
Attachments
Change History
Changed 3 years ago by gszymaszek
- Attachment 0001-Add-basic-Ngspice-syntax-highlighting.patch added
comment:1 Changed 3 years ago by andrew_b
- Status changed from new to accepted
- Owner set to andrew_b
- Milestone changed from Future Releases to 4.8.28
comment:2 Changed 3 years ago by andrew_b
- Status changed from accepted to testing
- Votes for changeset set to committed-master
- Resolution set to fixed
Thanks!
Applied as [52d9d7946f8c26ebb99dbf60834e7dc72b65957c].