Ticket #4316 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

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

0001-Add-basic-Ngspice-syntax-highlighting.patch (16.2 KB) - added by gszymaszek 3 years ago.

Change History

Changed 3 years ago by gszymaszek

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

comment:3 Changed 3 years ago by andrew_b

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.