|
@@ -85,11 +85,11 @@ export const language = <languages.IMonarchLanguage>{
|
|
|
[/@[^@]/, { token: '@rematch', switchTo: '@razorInSimpleState.root' }],
|
|
|
[/<!DOCTYPE/, 'metatag.html', '@doctype'],
|
|
|
[/<!--/, 'comment.html', '@comment'],
|
|
|
- [/(<)(\w+)(\/>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
|
|
+ [/(<)([\w\-]+)(\/>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
|
|
[/(<)(script)/, ['delimiter.html', { token: 'tag.html', next: '@script' }]],
|
|
|
[/(<)(style)/, ['delimiter.html', { token: 'tag.html', next: '@style' }]],
|
|
|
- [/(<)([:\w]+)/, ['delimiter.html', { token: 'tag.html', next: '@otherTag' }]],
|
|
|
- [/(<\/)(\w+)/, ['delimiter.html', { token: 'tag.html', next: '@otherTag' }]],
|
|
|
+ [/(<)([:\w\-]+)/, ['delimiter.html', { token: 'tag.html', next: '@otherTag' }]],
|
|
|
+ [/(<\/)([\w\-]+)/, ['delimiter.html', { token: 'tag.html', next: '@otherTag' }]],
|
|
|
[/</, 'delimiter.html'],
|
|
|
[/[ \t\r\n]+/], // whitespace
|
|
|
[/[^<@]+/] // text
|
|
@@ -453,9 +453,9 @@ export const language = <languages.IMonarchLanguage>{
|
|
|
[/'([^']*)'/, 'string.cs'],
|
|
|
|
|
|
// simple html
|
|
|
- [/(<)(\w+)(\/>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
|
|
- [/(<)(\w+)(>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
|
|
- [/(<\/)(\w+)(>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
|
|
+ [/(<)([\w\-]+)(\/>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
|
|
+ [/(<)([\w\-]+)(>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
|
|
+ [/(<\/)([\w\-]+)(>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
|
|
|
|
|
// delimiters
|
|
|
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/, 'delimiter.cs'],
|