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:
725 bytes
|
Line | |
---|
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 | 'builtin': undefined
|
---|
7 | });
|
---|
8 |
|
---|
9 | Prism.languages.insertBefore('idris', 'keyword', {
|
---|
10 | 'import-statement': {
|
---|
11 | pattern: /(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,
|
---|
12 | lookbehind: true,
|
---|
13 | inside: {
|
---|
14 | 'punctuation': /\./
|
---|
15 | }
|
---|
16 | }
|
---|
17 | });
|
---|
18 |
|
---|
19 | Prism.languages.idr = Prism.languages.idris;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.