1 | Prism.languages.idris = Prism.languages.extend('haskell', {
|
2 | 'comment': {
|
3 | pattern: /(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m,
|
4 | },
|
5 | 'keyword': /\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,
|
6 | 'import-statement': {
|
7 | pattern: /(^\s*)import\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,
|
8 | lookbehind: true
|
9 | },
|
10 | 'builtin': undefined
|
11 | });
|
12 |
|
13 | Prism.languages.idr = Prism.languages.idris;
|