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

[Bugfix] Add Further File Extensions to Highlight (#3) #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kevinmatthes
Copy link

This Pull Request incorporates the ideas of #104 and adds further file extensions to the syntax highlight mapping. The commit message contains references where the extensions originate from and which applications work with them. Most of the new extensions originate from Doxygen and GCC.

Extensions were added for the following languages.

  • Assembler
  • C
  • Fortran
  • Haskell
  • Markdown
  • PHP
  • Python
  • Troff
  • Verilog
  • YAML

Doxygen is a popular and common documentation tool. The extensions it supports are hence expected to occur as input files to be edited with ne. GCC is a very important compiler and was thus my main reference to counter-check the extensions supported by Doxygen as the Doxygen configuration file only lists the supported extensions without a mapping information.

I added Haskell and PHP as they were subject to #104 as well as Asymptote and CFF (see #102) since I usually work with those latter two languges. Asymptote (asy) is a vector graphics language inspired by both C and Java, thus, it shares some syntax elements with both. I shelved it in to the C section, initially. If one finds that it is rather similar to Java instead of C, moving it there is no problem, please just tell me.

* Activate Haskell syntax highlighting

References:

- vigna#104

* Add Python extensions

References:

- `pyx`:  Cython compiler, version 0.29.21
- `pyw`:  Doxygen default configuration file, version 1.9.1
- `pyw`:  IDLE Python IDE, version 3.9.2-3

* Add Fortran extensions

References:

- `f95`, `f03`, `f08`, `f18`:
  Doxygen default configuration file, version 1.9.1
- `F95`, `F03`, `F08`, `FOR`, `fpp`, `FPP`, `ftn`, `FTN`:
  GCC manual page, version 10.2.0, 31th July 2020

* Add assembler extensions

References:

- GCC manual page, version 10.2.0, 31th July 2020

* Add further C/C++ extensions

References:

- GCC manual page, version 10.2.0, 31th July 2020

* Add miscellaneous extensions from Doxygen

References:

- Doxygen default configuration file, version 1.9.1

* Add further extensions

References:

- `asy`:  [HBP20]
- `cff`:  [DSCHBB+21]

[DSCHBB+21] Stephan Druskat, Jurriaan H. Spaaks, Neil Chue Hong, Robert Haines,
            James Baker, Spencer Bliven, Egon Willighagen, David Pérez-Suárez and
            Alexander Konovalov. Citation File Format. Version 1.2.0. 2021-08. doi:
            10.5281/zenodo.5171937.
[HBP20]      Andy Hammerlindl, John Bowman and Tom Prince. Asymptote. The Vector
            Graphics Language. Version 2.69. 2020.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants