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 support for the Coq language #1194

Merged
merged 1 commit into from
Jun 28, 2016
Merged

Add support for the Coq language #1194

merged 1 commit into from
Jun 28, 2016

Conversation

stepchowfun
Copy link
Contributor

Coq is a functional programming language and interactive theorem prover. Here is a screenshot of the syntax highlighting:

screenshot 2016-05-29 15 43 40

Thanks for reviewing!

@Sannis Sannis added this to the 9.5 milestone May 30, 2016
},
contains: [
hljs.QUOTE_STRING_MODE,
hljs.COMMENT('\\(\\*', '\\*\\)', { relevance: 2 }),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be great if it will pass tests without relevance or with relevance=10.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I'm having a bit of trouble making that happen without modifying other language definitions. It seems the "gams" language definition is too aggressive and matches any Coq code. If I bump this relevance to 10, it matches the Mathematica example (apparently Mathematica uses the same style of comments).

@Sannis Sannis self-assigned this May 31, 2016
@isagalaev isagalaev merged commit 2d4156c into highlightjs:master Jun 28, 2016
@isagalaev
Copy link
Member

Merged in a somewhat abridged form. Namely, I had to treat things like 'Inductive', 'Fixpoint', 'Theorem' as keywords, because they are definitely not 'meta'. We could change it later if someone comes up with a better name.

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.

3 participants