motoko
Version:
Compile and run Motoko smart contracts in Node.js or the browser.
77 lines (75 loc) • 993 B
text/typescript
export const keywords = [
'actor',
'and',
'async',
'assert',
'await',
'break',
'case',
'catch',
'class',
'composite',
'continue',
'debug',
'debug_show',
'do',
'else',
'false',
'finally',
'flexible',
'for',
'from_candid',
'func',
'if',
'ignore',
'in',
'import',
'label',
'let',
'loop',
'module',
'not',
'null',
'object',
'or',
'persistent',
'private',
'public',
'query',
'return',
'shared',
'stable',
'switch',
'system',
'throw',
'to_candid',
'transient',
'true',
'try',
'type',
'var',
'while',
'with',
];
export const typeKeywords = [
'Any',
'None',
'Null',
'Bool',
'Int',
'Int8',
'Int16',
'Int32',
'Int64',
'Nat',
'Nat8',
'Nat16',
'Nat32',
'Nat64',
'Float',
'Char',
'Text',
'Blob',
'Error',
'Principal',
];