mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
This commit is contained in:
parent
c362bfab0e
commit
e174b96db8
2 changed files with 20 additions and 2 deletions
|
|
@ -2076,5 +2076,23 @@ testTokenization(['php', 'css', 'javascript'], [
|
||||||
{ startIndex: 17, type: '' },
|
{ startIndex: 17, type: '' },
|
||||||
{ startIndex: 18, type: 'metatag.php' }
|
{ startIndex: 18, type: 'metatag.php' }
|
||||||
]
|
]
|
||||||
|
}],
|
||||||
|
|
||||||
|
[{
|
||||||
|
line: '<?php',
|
||||||
|
tokens: [
|
||||||
|
{ startIndex: 0, type: 'metatag.php' },
|
||||||
|
]
|
||||||
|
}, {
|
||||||
|
line: ' //',
|
||||||
|
tokens: [
|
||||||
|
{ startIndex: 0, type: '' },
|
||||||
|
{ startIndex: 2, type: 'comment.php' },
|
||||||
|
]
|
||||||
|
}, {
|
||||||
|
line: 'if',
|
||||||
|
tokens: [
|
||||||
|
{ startIndex: 0, type: 'keyword.php' },
|
||||||
|
]
|
||||||
}]
|
}]
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
|
|
@ -225,8 +225,8 @@ export const language = <ILanguage>{
|
||||||
[/[ \t\r\n]+/],
|
[/[ \t\r\n]+/],
|
||||||
|
|
||||||
// comments
|
// comments
|
||||||
[/#/, 'comment.php', '@phpLineComment'],
|
[/(#|\/\/)$/, 'comment.php'],
|
||||||
[/\/\//, 'comment.php', '@phpLineComment'],
|
[/(#|\/\/)/, 'comment.php', '@phpLineComment'],
|
||||||
|
|
||||||
// block comments
|
// block comments
|
||||||
[/\/\*/, 'comment.php', '@phpComment'],
|
[/\/\*/, 'comment.php', '@phpComment'],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue