Fix types

This commit is contained in:
Sidharth Vinod
2021-05-23 01:58:30 +05:30
parent 3187d8a0ea
commit 1e8c44d009
+6 -4
View File
@@ -10,7 +10,9 @@ export const initEditor = (monaco) => {
'classDiagram',
'pie',
'flowchart',
'gantt'
'gantt',
'gitGraph',
'journey'
],
keywords: ['patricipant', 'as'],
arrows: ['---', '===', '-->', '==>'],
@@ -20,13 +22,13 @@ export const initEditor = (monaco) => {
[/[{}]/, 'delimiter.bracket'],
[/[a-z_$][\w$]*/, { cases: { '@typeKeywords': 'keyword', '@keywords': 'keyword' } }],
[/[-=>ox]+/, { cases: { '@arrows': 'transition' } }],
[/[\[\{\(}]+.+?[\)\]\}]+/, 'string'],
[/\".*\"/, 'string']
[/[[{(}]+.+?[)]}]+/, 'string'],
[/".*"/, 'string']
]
},
whitespace: [
[/[ \t\r\n]+/, 'white'],
[/\%\%.*$/, 'comment']
[/%%.*$/, 'comment']
]
});