mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
Merge pull request #137 from akonatala/update-cameligo-language-support
Update cameligo language support
This commit is contained in:
commit
319a1ddf56
1 changed files with 18 additions and 7 deletions
|
|
@ -21,14 +21,18 @@ 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: "*)"},
|
||||||
],
|
],
|
||||||
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: "*)"},
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -46,14 +50,16 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
|
|
||||||
keywords: [
|
keywords: [
|
||||||
'abs',
|
'abs',
|
||||||
'begin',
|
'assert',
|
||||||
|
'block',
|
||||||
'Bytes',
|
'Bytes',
|
||||||
|
'case',
|
||||||
'Crypto',
|
'Crypto',
|
||||||
'Current',
|
'Current',
|
||||||
'else',
|
'else',
|
||||||
'end',
|
|
||||||
'failwith',
|
'failwith',
|
||||||
'false',
|
'false',
|
||||||
|
'for',
|
||||||
'fun',
|
'fun',
|
||||||
'if',
|
'if',
|
||||||
'in',
|
'in',
|
||||||
|
|
@ -71,18 +77,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 +114,9 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
'^',
|
'^',
|
||||||
'%',
|
'%',
|
||||||
'->',
|
'->',
|
||||||
'<-'
|
'<-',
|
||||||
|
'&&',
|
||||||
|
'||',
|
||||||
],
|
],
|
||||||
|
|
||||||
// we include these common regular expressions
|
// we include these common regular expressions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue