Fix ': ' within a comment

This commit is contained in:
yuri1969 2023-03-25 18:12:24 +01:00
parent c7ce77ba18
commit 788b6a2982
No known key found for this signature in database
GPG key ID: DF103A997C390C2A
2 changed files with 35 additions and 2 deletions

View file

@ -86,7 +86,7 @@ export const language = <languages.IMonarchLanguage>{
[/@numberDate(?![ \t]*\S+)/, 'number.date'],
// Key:Value pair
[/(".*?"|'.*?'|[^'"]*?)([ \t]*)(:)( |$)/, ['type', 'white', 'operators', 'white']],
[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/, ['type', 'white', 'operators', 'white']],
{ include: '@flowScalars' },