1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
Prism.languages.racket = Prism.languages.extend('scheme', { 'lambda-parameter': { // the racket lambda syntax is a lot more complex, so we won't even attempt to capture it. // this will just prevent false positives of the `function` pattern pattern: /([(\[]lambda\s+[(\[])[^()\[\]'\s]+/, lookbehind: true, }, }); Prism.languages.insertBefore('racket', 'string', { lang: { pattern: /^#lang.+/m, greedy: true, alias: 'keyword', }, }); Prism.languages.rkt = Prism.languages.racket; .philippot.euwww.armandphilippot.com' title='www.armandphilippot.com Git repository'/>