This commit is contained in:
masad-frost 2018-06-08 23:45:35 -07:00
parent b6f47a51d6
commit 9987c4fd86

View file

@ -44,9 +44,9 @@ export const language = <ILanguage>{
keywords: [
'ns',
'ns\-unmap',
'create\-ns',
'in\-ns',
'ns-unmap',
'create-ns',
'in-ns',
'fn',
'def',
'defn',
@ -58,7 +58,7 @@ export const language = <ILanguage>{
'new',
'refer',
'pos',
'pos\?',
'pos?',
'filter',
'map',
'reduce',
@ -71,15 +71,15 @@ export const language = <ILanguage>{
'iterate',
'range',
'drop',
'drop\-while',
'drop-while',
'take',
'take\-while',
'take-while',
'neg',
'neg?',
'bound\-fn',
'bound-fn',
'if',
'if\-not',
'if\-let',
'if-not',
'if-let',
'case,',
'contains',
'conj',
@ -97,13 +97,13 @@ export const language = <ILanguage>{
'contains?',
'cond',
'condp',
'cond\-\>',
'cond\-\>\>',
'cond->',
'cond->>',
'when',
'while',
'when\-not',
'when\-let',
'when\-first',
'when-not',
'when-let',
'when-first',
'do',
'future',
'comment',
@ -114,7 +114,7 @@ export const language = <ILanguage>{
'type',
'meta',
'var',
'as\-\>',
'as->',
'reify',
'deftype',
'defrecord',
@ -123,7 +123,7 @@ export const language = <ILanguage>{
'extend-protocol',
'extend-type',
'specify',
'specify\!',
'specify!',
'try',
'catch',
'finally',
@ -135,38 +135,60 @@ export const language = <ILanguage>{
'seq',
'doseq',
'dotimes',
'when\-let',
'if\-let',
'when\-some',
'if\-some',
'this\-as',
'when-let',
'if-let',
'when-some',
'if-some',
'this-as',
'defmethod',
'testing',
'deftest',
'are',
'use\-fixtures',
'use-fixtures',
'use',
'remove',
'run',
'run\*',
'run*',
'fresh',
'alt!',
'alt!!',
'go',
'go\-loop',
'go-loop',
'thread',
],
constants: ['true', 'false', 'nil', 'boolean', 'str'],
operators: ['=', 'not=', '<', '<=', '>', '>=', 'and', 'or', 'not', 'inc', 'dec', 'max', 'min', 'rem', 'bit-and', 'bit-or', 'bit-xor', 'bit-not'],
operators: [
'=',
'not=',
'<',
'<=',
'>',
'>=',
'and',
'or',
'not',
'inc',
'dec',
'max',
'min',
'rem',
'bit-and',
'bit-or',
'bit-xor',
'bit-not',
],
tokenizer: {
root: [
[/#[xXoObB][0-9a-fA-F]+/, 'number.hex'],
[/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/, 'number.float'],
[/(?:\b(?:(def|defn|defmacro|defmulti|defonce|ns|ns-unmap|fn))\b)(\s+)((?:\w|\-|\!|\?)*)/, ['keyword', 'white', 'variable']],
[
/(?:\b(?:(def|defn|defmacro|defmulti|defonce|ns|ns-unmap|fn))\b)(\s+)((?:\w|\-|\!|\?)*)/,
['keyword', 'white', 'variable'],
],
[
/[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,