Fix razor + liquid render of tags with a dash symbol
parent
8edbbc5a7b
commit
d3e1f45a4e
|
@ -167,9 +167,9 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
[/\{\%\s*comment\s*\%\}/, 'comment.start.liquid', '@comment'],
|
[/\{\%\s*comment\s*\%\}/, 'comment.start.liquid', '@comment'],
|
||||||
[/\{\{/, { token: '@rematch', switchTo: '@liquidState.root' }],
|
[/\{\{/, { token: '@rematch', switchTo: '@liquidState.root' }],
|
||||||
[/\{\%/, { token: '@rematch', switchTo: '@liquidState.root' }],
|
[/\{\%/, { token: '@rematch', switchTo: '@liquidState.root' }],
|
||||||
[/(<)(\w+)(\/>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
[/(<)([\w\-]+)(\/>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
||||||
[/(<)([:\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'],
|
[/</, 'delimiter.html'],
|
||||||
[/\{/, 'delimiter.html'],
|
[/\{/, 'delimiter.html'],
|
||||||
[/[^<{]+/] // text
|
[/[^<{]+/] // text
|
||||||
|
|
|
@ -85,11 +85,11 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
[/@[^@]/, { token: '@rematch', switchTo: '@razorInSimpleState.root' }],
|
[/@[^@]/, { token: '@rematch', switchTo: '@razorInSimpleState.root' }],
|
||||||
[/<!DOCTYPE/, 'metatag.html', '@doctype'],
|
[/<!DOCTYPE/, 'metatag.html', '@doctype'],
|
||||||
[/<!--/, 'comment.html', '@comment'],
|
[/<!--/, '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' }]],
|
[/(<)(script)/, ['delimiter.html', { token: 'tag.html', next: '@script' }]],
|
||||||
[/(<)(style)/, ['delimiter.html', { token: 'tag.html', next: '@style' }]],
|
[/(<)(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'],
|
[/</, 'delimiter.html'],
|
||||||
[/[ \t\r\n]+/], // whitespace
|
[/[ \t\r\n]+/], // whitespace
|
||||||
[/[^<@]+/] // text
|
[/[^<@]+/] // text
|
||||||
|
@ -453,9 +453,9 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
[/'([^']*)'/, 'string.cs'],
|
[/'([^']*)'/, 'string.cs'],
|
||||||
|
|
||||||
// simple html
|
// 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
|
// delimiters
|
||||||
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/, 'delimiter.cs'],
|
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/, 'delimiter.cs'],
|
||||||
|
|
Loading…
Reference in New Issue