mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Add HTML lexing info
This commit is contained in:
parent
8c432bf06e
commit
5883288970
1 changed files with 5 additions and 1 deletions
|
|
@ -44,8 +44,9 @@ export const conf: IRichLanguageConfiguration = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const language = <ILanguage>{
|
export const language = <ILanguage>{
|
||||||
defaultToken: 'invalid',
|
defaultToken: '',
|
||||||
tokenPostfix: '',
|
tokenPostfix: '',
|
||||||
|
ignoreCase: true,
|
||||||
|
|
||||||
keywords: [
|
keywords: [
|
||||||
// (opening) tags
|
// (opening) tags
|
||||||
|
|
@ -60,10 +61,13 @@ export const language = <ILanguage>{
|
||||||
],
|
],
|
||||||
|
|
||||||
tokenizer: {
|
tokenizer: {
|
||||||
|
...htmlLanguage.tokenizer,
|
||||||
|
|
||||||
root: [
|
root: [
|
||||||
[/{#/, 'comment.twig', '@commentState'],
|
[/{#/, 'comment.twig', '@commentState'],
|
||||||
[/{%[-~]?/, 'delimiter.twig', '@blockState'],
|
[/{%[-~]?/, 'delimiter.twig', '@blockState'],
|
||||||
[/{{[-~]?/, 'delimiter.twig', '@variableState'],
|
[/{{[-~]?/, 'delimiter.twig', '@variableState'],
|
||||||
|
...htmlLanguage.tokenizer.root,
|
||||||
],
|
],
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue