|
|
@ -21,14 +21,20 @@ export const conf: languages.LanguageConfiguration = {
|
|
|
|
{ open: '[', close: ']' },
|
|
|
|
{ open: '[', close: ']' },
|
|
|
|
{ open: '(', close: ')' },
|
|
|
|
{ open: '(', close: ')' },
|
|
|
|
{ open: '<', close: '>' },
|
|
|
|
{ open: '<', close: '>' },
|
|
|
|
{ open: "'", close: "'" }
|
|
|
|
{ open: "'", close: "'" },
|
|
|
|
|
|
|
|
{ open: "\"", close: "\""},
|
|
|
|
|
|
|
|
{ open: "(*", close: "*)"},
|
|
|
|
|
|
|
|
{ open: "begin", close: "end"},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
surroundingPairs: [
|
|
|
|
surroundingPairs: [
|
|
|
|
{ open: '{', close: '}' },
|
|
|
|
{ open: '{', close: '}' },
|
|
|
|
{ open: '[', close: ']' },
|
|
|
|
{ open: '[', close: ']' },
|
|
|
|
{ open: '(', close: ')' },
|
|
|
|
{ open: '(', close: ')' },
|
|
|
|
{ open: '<', close: '>' },
|
|
|
|
{ open: '<', close: '>' },
|
|
|
|
{ open: "'", close: "'" }
|
|
|
|
{ open: "'", close: "'" },
|
|
|
|
|
|
|
|
{ open: "\"", close: "\""},
|
|
|
|
|
|
|
|
{ open: "(*", close: "*)"},
|
|
|
|
|
|
|
|
{ open: "begin", close: "end"},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -46,14 +52,18 @@ export const language = <languages.IMonarchLanguage>{
|
|
|
|
|
|
|
|
|
|
|
|
keywords: [
|
|
|
|
keywords: [
|
|
|
|
'abs',
|
|
|
|
'abs',
|
|
|
|
|
|
|
|
'assert',
|
|
|
|
'begin',
|
|
|
|
'begin',
|
|
|
|
|
|
|
|
'block',
|
|
|
|
'Bytes',
|
|
|
|
'Bytes',
|
|
|
|
|
|
|
|
'case',
|
|
|
|
'Crypto',
|
|
|
|
'Crypto',
|
|
|
|
'Current',
|
|
|
|
'Current',
|
|
|
|
'else',
|
|
|
|
'else',
|
|
|
|
'end',
|
|
|
|
'end',
|
|
|
|
'failwith',
|
|
|
|
'failwith',
|
|
|
|
'false',
|
|
|
|
'false',
|
|
|
|
|
|
|
|
'for',
|
|
|
|
'fun',
|
|
|
|
'fun',
|
|
|
|
'if',
|
|
|
|
'if',
|
|
|
|
'in',
|
|
|
|
'in',
|
|
|
@ -71,18 +81,21 @@ export const language = <languages.IMonarchLanguage>{
|
|
|
|
'operation',
|
|
|
|
'operation',
|
|
|
|
'Operation',
|
|
|
|
'Operation',
|
|
|
|
'of',
|
|
|
|
'of',
|
|
|
|
|
|
|
|
'record',
|
|
|
|
'Set',
|
|
|
|
'Set',
|
|
|
|
'set',
|
|
|
|
'set',
|
|
|
|
'sender',
|
|
|
|
'sender',
|
|
|
|
|
|
|
|
'skip',
|
|
|
|
'source',
|
|
|
|
'source',
|
|
|
|
'String',
|
|
|
|
'String',
|
|
|
|
'then',
|
|
|
|
'then',
|
|
|
|
|
|
|
|
'to',
|
|
|
|
'true',
|
|
|
|
'true',
|
|
|
|
'type',
|
|
|
|
'type',
|
|
|
|
'with'
|
|
|
|
'with',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
typeKeywords: ['int', 'unit', 'string', 'tz'],
|
|
|
|
typeKeywords: ['int', 'unit', 'string', 'tz', 'nat', 'bool'],
|
|
|
|
|
|
|
|
|
|
|
|
operators: [
|
|
|
|
operators: [
|
|
|
|
'=',
|
|
|
|
'=',
|
|
|
@ -105,7 +118,11 @@ export const language = <languages.IMonarchLanguage>{
|
|
|
|
'^',
|
|
|
|
'^',
|
|
|
|
'%',
|
|
|
|
'%',
|
|
|
|
'->',
|
|
|
|
'->',
|
|
|
|
'<-'
|
|
|
|
'<-',
|
|
|
|
|
|
|
|
'&&',
|
|
|
|
|
|
|
|
'||',
|
|
|
|
|
|
|
|
'!',
|
|
|
|
|
|
|
|
''
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
// we include these common regular expressions
|
|
|
|
// we include these common regular expressions
|
|
|
|