mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
Fixing ATS/Postiats hilighting.
This commit is contained in:
parent
c1a1f8663d
commit
ba5e90065a
2 changed files with 7 additions and 1 deletions
|
|
@ -610,7 +610,7 @@ export var language = <ILanguage> {
|
||||||
[/\(\*/, 'comment', '@push' ],
|
[/\(\*/, 'comment', '@push' ],
|
||||||
[/\(\*/, 'comment.invalid' ],
|
[/\(\*/, 'comment.invalid' ],
|
||||||
[/\*\)/, 'comment', '@pop' ],
|
[/\*\)/, 'comment', '@pop' ],
|
||||||
[/.*/, 'invalid']
|
[/\*/, 'comment']
|
||||||
],
|
],
|
||||||
lexing_COMMENT_block_c: [
|
lexing_COMMENT_block_c: [
|
||||||
[/[^\/*]+/, 'comment' ],
|
[/[^\/*]+/, 'comment' ],
|
||||||
|
|
|
||||||
|
|
@ -177,6 +177,12 @@ testTokenization('postiats', [
|
||||||
{ startIndex: 0, type: 'comment.pats' }
|
{ startIndex: 0, type: 'comment.pats' }
|
||||||
]}],
|
]}],
|
||||||
|
|
||||||
|
[{
|
||||||
|
line: '(* ****** ****** *)',
|
||||||
|
tokens: [
|
||||||
|
{ startIndex: 0, type: 'comment.pats' }
|
||||||
|
]}],
|
||||||
|
|
||||||
[{
|
[{
|
||||||
line: 'var x : int = (* a simple comment *) 1;',
|
line: 'var x : int = (* a simple comment *) 1;',
|
||||||
tokens: [
|
tokens: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue