• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

language-singularity

Singularity syntax highlighting support for Atom
  • #syntax
  • #recipe
  • #highlight
  • #singularity
  • #container
singularityhub
500
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Singularity Language

This repository provides a small package to help with syntax highlighting of Singularity recipe files in the Atom editor. The package is published on apm and can be updated as needed.

  • Grammars: contains the definition of rules and highlights, with details provided below.
  • Settings: additional settings

Note that for files that are named Singularity.* (with a Singularity prefix and a custom extension to indicate a tag) the highlighter is activated on save, or on change of the title. The others that are named just Singularity or end in .def are rendered on load. Thus, if you open a file called Singularity.<extension> and it doesn't highlight right away, just save it and it will trigger the event. The syntax is fairly simple thus far, and looks like this:

img/example-singularity.png

Please contribute by issuing a pull request to this repository!

How to develop

The package itself, as an "official package," should be published, but you can easily clone this repository and put it in your $HOME/.atom/packages folder (and maintain the name starting with language- to have it be discovered. You should likely restart your editor, and then save a file that ends in def or has Singularity.

Acknowledgements

Most of the guidance for the regular expressions is taken from language-docker that has very similar syntax highlighting.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by