mirror of
https://gitee.com/ssssssss-team/magic-api.git
synced 2026-06-09 10:23:53 +08:00
修复语法高亮中注释未被正确高亮的问题
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user