main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict'
|
---|
| 2 |
|
---|
| 3 | module.exports = agda
|
---|
| 4 | agda.displayName = 'agda'
|
---|
| 5 | agda.aliases = []
|
---|
| 6 | function agda(Prism) {
|
---|
| 7 | ;(function (Prism) {
|
---|
| 8 | Prism.languages.agda = {
|
---|
| 9 | comment: /\{-[\s\S]*?(?:-\}|$)|--.*/,
|
---|
| 10 | string: {
|
---|
| 11 | pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,
|
---|
| 12 | greedy: true
|
---|
| 13 | },
|
---|
| 14 | punctuation: /[(){}⦃⦄.;@]/,
|
---|
| 15 | 'class-name': {
|
---|
| 16 | pattern: /((?:data|record) +)\S+/,
|
---|
| 17 | lookbehind: true
|
---|
| 18 | },
|
---|
| 19 | function: {
|
---|
| 20 | pattern: /(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,
|
---|
| 21 | lookbehind: true
|
---|
| 22 | },
|
---|
| 23 | operator: {
|
---|
| 24 | pattern: /(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,
|
---|
| 25 | lookbehind: true
|
---|
| 26 | },
|
---|
| 27 | keyword:
|
---|
| 28 | /\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/
|
---|
| 29 | }
|
---|
| 30 | })(Prism)
|
---|
| 31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.