diff --git a/magic-editor/src/console/src/scripts/editor/high-light.js b/magic-editor/src/console/src/scripts/editor/high-light.js index 715a4b8d..22cf7555 100644 --- a/magic-editor/src/console/src/scripts/editor/high-light.js +++ b/magic-editor/src/console/src/scripts/editor/high-light.js @@ -41,10 +41,11 @@ export const HighLightOptions = { [/'/, 'string', '@string_single'], ], comment: [ - [/((TODO)|(todo)|(fixme)|(FIXME))[ \t]+[^\n(?!\*\/)]+/, 'comment.todo','@comment'], - [/[ \t]+/, 'comment','@comment'], - [/\*\//, 'comment', '@popall'], - [/[^ \t]+(?!((TODO)|(todo)|(fixme)|(FIXME)))/, 'comment','@comment'] + [/((TODO)|(todo)|(fixme)|(FIXME))[ \t]+[^\n(?!\*\/)]+/, 'comment.todo'], + [/[ \t]+/, 'comment'], + [/\*\//, 'comment', '@pop'], + [/[^ \t*\/]+(?!((TODO)|(todo)|(fixme)|(FIXME)))/, 'comment'], + [/./, 'comment'], ], commentTodo: [ [/((TODO)|(todo)|(fixme)|(FIXME))[ \t]+[^\n]+/, 'comment.todo','@popall'],