mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05: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>{
|
||||
defaultToken: 'invalid',
|
||||
defaultToken: '',
|
||||
tokenPostfix: '',
|
||||
ignoreCase: true,
|
||||
|
||||
keywords: [
|
||||
// (opening) tags
|
||||
|
|
@ -60,10 +61,13 @@ export const language = <ILanguage>{
|
|||
],
|
||||
|
||||
tokenizer: {
|
||||
...htmlLanguage.tokenizer,
|
||||
|
||||
root: [
|
||||
[/{#/, 'comment.twig', '@commentState'],
|
||||
[/{%[-~]?/, 'delimiter.twig', '@blockState'],
|
||||
[/{{[-~]?/, 'delimiter.twig', '@variableState'],
|
||||
...htmlLanguage.tokenizer.root,
|
||||
],
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue