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>pull/3348/head
parent
ab889ff2cc
commit
54a4e45a10
|
@ -34,27 +34,27 @@ monaco.languages.registerColorProvider('colorLanguage', {
|
||||||
color: { red: 1, blue: 0, green: 0, alpha: 1 },
|
color: { red: 1, blue: 0, green: 0, alpha: 1 },
|
||||||
range: {
|
range: {
|
||||||
startLineNumber: 1,
|
startLineNumber: 1,
|
||||||
startColumn: 0,
|
startColumn: 1,
|
||||||
endLineNumber: 1,
|
endLineNumber: 1,
|
||||||
endColumn: 0
|
endColumn: 4
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
color: { red: 0, blue: 1, green: 0, alpha: 1 },
|
color: { red: 0, blue: 1, green: 0, alpha: 1 },
|
||||||
range: {
|
range: {
|
||||||
startLineNumber: 2,
|
startLineNumber: 2,
|
||||||
startColumn: 0,
|
startColumn: 1,
|
||||||
endLineNumber: 2,
|
endLineNumber: 2,
|
||||||
endColumn: 0
|
endColumn: 5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
color: { red: 0, blue: 0, green: 1, alpha: 1 },
|
color: { red: 0, blue: 0, green: 1, alpha: 1 },
|
||||||
range: {
|
range: {
|
||||||
startLineNumber: 3,
|
startLineNumber: 3,
|
||||||
startColumn: 0,
|
startColumn: 1,
|
||||||
endLineNumber: 3,
|
endLineNumber: 3,
|
||||||
endColumn: 0
|
endColumn: 6
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue