update semantic-tokens-provider-example/sample.js

This commit is contained in:
PisecesPeng 2021-07-05 17:22:35 +08:00 committed by GitHub
parent c3927326fc
commit dee5461cb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
} }