-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 NMODL Language #6776
Add NMODL Language #6776
Conversation
This is the NEURON extension to MODL, a model description language used within the neuroscientific community. See also: https://www.neuron.yale.edu/neuron/static/py_doc/modelspec/programmatic/mechanisms/nmodl2.html
Yup, add a regex to the list of current heuristics for the linguist/lib/linguist/heuristics.yml Lines 468 to 474 in 4ac734c
|
Thanks! I added some keywords that would seem fairly safe. Sorry, did not realize it would be relatively simple. Tested the changes on a local repo, too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please update the test for this heuristic too.
OK, added a line there, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks.
Note: this PR will not be merged until close to when the next release is made. See here for more details.
OK, no problem. Thank you for the help & guidance! |
This is the NEURON extension to MODL, a model description language used
within the neuroscientific community. See also:
https://www.neuron.yale.edu/neuron/static/py_doc/modelspec/programmatic/mechanisms/nmodl2.html
Description
I am involved in the neuroscientific community around the NEURON simulator. It has its
own DSL used to describe neuron processes. We have noticed that a lot of the code files
are misclassified as AMPL, and would like to fix that.
The linked search matches 12.7k files, which I think constitutes a strong case to
recognize the language within Github. I have included two samples from the main NEURON
repository showcasing the syntax.
The extension is shared by kernel modules and AMPL. I have looked into providing more
samples for the latter, but I am not sure which licenses these examples would be.
Comparing the two languages, they seem very different. Do you have any advise?
I will contact the author(s) of existing syntax highlighting to see if they can provide
their syntax highlighting under a compatible license.
Checklist:
#00356B