mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 11:35:40 +01:00
Fix the color provider's columns
Fix the example so that the document colors' ranges encompass the entire word. Signed-off-by: Remy Suen <remy.suen@gmail.com>
This commit is contained in:
parent
ab889ff2cc
commit
54a4e45a10
1 changed files with 6 additions and 6 deletions
|
|
@ -34,27 +34,27 @@ monaco.languages.registerColorProvider('colorLanguage', {
|
|||
color: { red: 1, blue: 0, green: 0, alpha: 1 },
|
||||
range: {
|
||||
startLineNumber: 1,
|
||||
startColumn: 0,
|
||||
startColumn: 1,
|
||||
endLineNumber: 1,
|
||||
endColumn: 0
|
||||
endColumn: 4
|
||||
}
|
||||
},
|
||||
{
|
||||
color: { red: 0, blue: 1, green: 0, alpha: 1 },
|
||||
range: {
|
||||
startLineNumber: 2,
|
||||
startColumn: 0,
|
||||
startColumn: 1,
|
||||
endLineNumber: 2,
|
||||
endColumn: 0
|
||||
endColumn: 5
|
||||
}
|
||||
},
|
||||
{
|
||||
color: { red: 0, blue: 0, green: 1, alpha: 1 },
|
||||
range: {
|
||||
startLineNumber: 3,
|
||||
startColumn: 0,
|
||||
startColumn: 1,
|
||||
endLineNumber: 3,
|
||||
endColumn: 0
|
||||
endColumn: 6
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue