Add more code block keywords

This commit is contained in:
Yash-Singh1
2021-08-17 17:44:47 -07:00
parent 7983b5d94c
commit c5348e9a81
+12 -1
View File
@@ -20,7 +20,18 @@ export const initEditor = (monacoEditor): void => {
'journey',
'info'
],
keywords: ['participant', 'as', 'showInfo', 'autonumber'],
keywords: [
'participant',
'as',
'showInfo',
'autonumber',
'rect',
'opt',
'alt',
'loop',
'else',
'end'
],
orientation: ['TB', 'TD', 'BT', 'RL', 'LR'],
arrows: ['---', '===', '-->>', '-->', '==>', '->>', '->', '--)', '-)', '--x', '-x'].reduce(
(accumalator, arrow) => accumalator.concat(arrow, arrow + '+', arrow + '-'),