Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic Ngspice syntax highlighting #4316

Closed
mc-butler opened this issue Dec 1, 2021 · 4 comments
Closed

Add basic Ngspice syntax highlighting #4316

mc-butler opened this issue Dec 1, 2021 · 4 comments
Assignees
Labels
area: mcedit mcedit, the built-in text editor prio: low Minor problem or easily worked around
Milestone

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/4316
Reporter gszymaszek (@gszy)

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.

Note

Original attachments:

@mc-butler
Copy link
Author

Changed by gszymaszek (@gszy) on Dec 1, 2021 at 13:38 UTC

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Dec 4, 2021 at 4:03 UTC (comment 1)

  • Milestone changed from Future Releases to 4.8.28
  • Status changed from new to accepted
  • Owner set to andrew_b

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Dec 4, 2021 at 4:05 UTC (comment 2)

  • Status changed from accepted to testing
  • Resolution set to fixed
  • Votes set to committed-master

Thanks!

Applied as [52d9d79].

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Dec 4, 2021 at 4:06 UTC (comment 3)

  • Status changed from testing to closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: mcedit mcedit, the built-in text editor prio: low Minor problem or easily worked around
Development

No branches or pull requests

2 participants