mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
update semantic-tokens-provider-example/sample.js
This commit is contained in:
parent
c3927326fc
commit
dee5461cb1
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ function getModifier(modifiers) {
|
||||||
if (Array.isArray(modifiers)) {
|
if (Array.isArray(modifiers)) {
|
||||||
let nModifiers = 0;
|
let nModifiers = 0;
|
||||||
for (let modifier of modifiers) {
|
for (let modifier of modifiers) {
|
||||||
nModifier = legend.tokenModifiers.indexOf(modifier);
|
const nModifier = legend.tokenModifiers.indexOf(modifier);
|
||||||
if (nModifier > -1) {
|
if (nModifier > -1) {
|
||||||
nModifiers |= (1 << nModifier) >>> 0;
|
nModifiers |= (1 << nModifier) >>> 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue