mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
Support hyphenated HTML tags in Markdown syntax
Signed-off-by: Remy Suen <remy.suen@gmail.com>
This commit is contained in:
parent
25e85af033
commit
be3ac39fbf
2 changed files with 50 additions and 2 deletions
|
|
@ -166,7 +166,7 @@ export const language = <languages.IMonarchLanguage>{
|
|||
// html tags
|
||||
[/<(\w+)\/>/, 'tag'],
|
||||
[
|
||||
/<(\w+)/,
|
||||
/<(\w+)(\-|\w)*/,
|
||||
{
|
||||
cases: {
|
||||
'@empty': { token: 'tag', next: '@tag.$1' },
|
||||
|
|
@ -174,7 +174,7 @@ export const language = <languages.IMonarchLanguage>{
|
|||
}
|
||||
}
|
||||
],
|
||||
[/<\/(\w+)\s*>/, { token: 'tag' }],
|
||||
[/<\/(\w+)(\-|\w)*\s*>/, { token: 'tag' }],
|
||||
|
||||
[/<!--/, 'comment', '@comment']
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue