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:
914 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | /*
|
---|
| 2 | Language: Clean
|
---|
| 3 | Author: Camil Staps <info@camilstaps.nl>
|
---|
| 4 | Category: functional
|
---|
| 5 | Website: http://clean.cs.ru.nl
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | /** @type LanguageFn */
|
---|
| 9 | function clean(hljs) {
|
---|
| 10 | return {
|
---|
| 11 | name: 'Clean',
|
---|
| 12 | aliases: [
|
---|
| 13 | 'icl',
|
---|
| 14 | 'dcl'
|
---|
| 15 | ],
|
---|
| 16 | keywords: {
|
---|
| 17 | keyword:
|
---|
| 18 | 'if let in with where case of class instance otherwise ' +
|
---|
| 19 | 'implementation definition system module from import qualified as ' +
|
---|
| 20 | 'special code inline foreign export ccall stdcall generic derive ' +
|
---|
| 21 | 'infix infixl infixr',
|
---|
| 22 | built_in:
|
---|
| 23 | 'Int Real Char Bool',
|
---|
| 24 | literal:
|
---|
| 25 | 'True False'
|
---|
| 26 | },
|
---|
| 27 | contains: [
|
---|
| 28 | hljs.C_LINE_COMMENT_MODE,
|
---|
| 29 | hljs.C_BLOCK_COMMENT_MODE,
|
---|
| 30 | hljs.APOS_STRING_MODE,
|
---|
| 31 | hljs.QUOTE_STRING_MODE,
|
---|
| 32 | hljs.C_NUMBER_MODE,
|
---|
| 33 | { // relevance booster
|
---|
| 34 | begin: '->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>'
|
---|
| 35 | }
|
---|
| 36 | ]
|
---|
| 37 | };
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | module.exports = clean;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.