source: node_modules/prismjs/components/prism-agda.js

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: 860 bytes
Line 
1(function (Prism) {
2
3 Prism.languages.agda = {
4 'comment': /\{-[\s\S]*?(?:-\}|$)|--.*/,
5 'string': {
6 pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,
7 greedy: true,
8 },
9 'punctuation': /[(){}⦃⦄.;@]/,
10 'class-name': {
11 pattern: /((?:data|record) +)\S+/,
12 lookbehind: true,
13 },
14 'function': {
15 pattern: /(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,
16 lookbehind: true,
17 },
18 'operator': {
19 pattern: /(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,
20 lookbehind: true,
21 },
22 'keyword': /\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/,
23 };
24}(Prism));
Note: See TracBrowser for help on using the repository browser.