mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 11:35:40 +01:00
added more keywords
Clojure has many reserved words
This commit is contained in:
parent
05bb6c9204
commit
8bfec94690
1 changed files with 49 additions and 1 deletions
|
|
@ -45,16 +45,56 @@ export const language = <ILanguage>{
|
|||
keywords: [
|
||||
'ns',
|
||||
'ns-unmap',
|
||||
'create-ns',
|
||||
'in-ns',
|
||||
'fn',
|
||||
'def',
|
||||
'defn',
|
||||
'defmacro',
|
||||
'defmulti',
|
||||
'defonce',
|
||||
'require',
|
||||
'import',
|
||||
'new',
|
||||
'refer',
|
||||
'pos',
|
||||
'pos\\?',
|
||||
'filter',
|
||||
'map',
|
||||
'reduce',
|
||||
'repeat',
|
||||
'key',
|
||||
'rest',
|
||||
'concat',
|
||||
'into',
|
||||
'reverse',
|
||||
'iterate',
|
||||
'range',
|
||||
'drop',
|
||||
'drop\\-while',
|
||||
'take',
|
||||
'take\\-while',
|
||||
'neg',
|
||||
'neg?',
|
||||
'bound\\-fn',
|
||||
'if',
|
||||
'if\\-not',
|
||||
'if\\-let',
|
||||
'case,',
|
||||
'contains',
|
||||
'conj',
|
||||
'disj',
|
||||
'sort',
|
||||
'get',
|
||||
'assoc',
|
||||
'merge',
|
||||
'keys',
|
||||
'vals',
|
||||
'nth',
|
||||
'first',
|
||||
'last',
|
||||
'count',
|
||||
'contains?',
|
||||
'cond',
|
||||
'condp',
|
||||
'cond\\-\\>',
|
||||
|
|
@ -62,6 +102,7 @@ export const language = <ILanguage>{
|
|||
'when',
|
||||
'while',
|
||||
'when\\-not',
|
||||
'when\\-let',
|
||||
'when\\-first',
|
||||
'do',
|
||||
'future',
|
||||
|
|
@ -69,6 +110,10 @@ export const language = <ILanguage>{
|
|||
'doto',
|
||||
'locking',
|
||||
'proxy',
|
||||
'println',
|
||||
'type',
|
||||
'meta',
|
||||
'var',
|
||||
'as\\-\\>',
|
||||
'reify',
|
||||
'deftype',
|
||||
|
|
@ -87,6 +132,7 @@ export const language = <ILanguage>{
|
|||
'binding',
|
||||
'loop',
|
||||
'for',
|
||||
'seq',
|
||||
'doseq',
|
||||
'dotimes',
|
||||
'when\\-let',
|
||||
|
|
@ -99,6 +145,8 @@ export const language = <ILanguage>{
|
|||
'deftest',
|
||||
'are',
|
||||
'use\\-fixtures',
|
||||
'use',
|
||||
'remove',
|
||||
'run',
|
||||
'run\\*',
|
||||
'fresh',
|
||||
|
|
@ -109,7 +157,7 @@ export const language = <ILanguage>{
|
|||
'thread',
|
||||
],
|
||||
|
||||
constants: ['true', 'false', 'nil'],
|
||||
constants: ['true', 'false', 'nil', 'boolean', 'str'],
|
||||
|
||||
operators: ['=', 'not=', '<', '<=', '>', '>=', 'and', 'or', 'not', 'inc', 'dec', 'max', 'min', 'rem', 'bit-and', 'bit-or', 'bit-xor', 'bit-not'],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue