Fix lint warnings

This commit is contained in:
Ilya Zverev 2020-02-22 13:12:27 +03:00 committed by Marijn Haverbeke
parent 592008812a
commit d212129f7c
3 changed files with 7 additions and 7 deletions

View File

@ -126,7 +126,7 @@
}
function expression(stream, state) {
let match;
var match;
if (stream.match(/[[]/)) {
state.soyState.push("list-literal");
state.lookupVariables = false;
@ -395,7 +395,7 @@
}
stream.next();
return null;
case "map-value":
if (stream.peek() == ")" || stream.peek() == "," || stream.match(/^[:)]/)) {
state.soyState.pop();

View File

@ -64,11 +64,11 @@
'[keyword {] [atom 0x1F00BBEA] [keyword }]');
MT('param-type-record',
'[keyword {@param] [def record]: [[[property foo]: [type bool], [property bar]: [type int] ]][keyword }]',
'[keyword {@param] [def record]: [[[property foo]: [type bool], [property bar]: [type int] ]][keyword }]'
);
MT('param-type-map',
'[keyword {@param] [def unknown]: [type map]<[type string], [type bool]>[keyword }]',
'[keyword {@param] [def unknown]: [type map]<[type string], [type bool]>[keyword }]'
);
MT('param-type-list',
@ -76,14 +76,14 @@
);
MT('param-type-any',
'[keyword {@param] [def unknown]: [type ?][keyword }]',
'[keyword {@param] [def unknown]: [type ?][keyword }]'
);
MT('param-type-nested',
'[keyword {@param] [def a]: ' +
'[type list]<[[[property a]: [type int], ' +
'[property b]: [type map]<[type string], ' +
'[type bool]>]]>][keyword }]',);
'[type bool]>]]>][keyword }]');
MT('undefined-var',
'[keyword {][variable-2&error $var]');

View File

@ -56,7 +56,7 @@ export function onDrop(e) {
markAsReadAndPasteIfAllFilesAreRead()
return
}
text[i] = content;
text[i] = content
markAsReadAndPasteIfAllFilesAreRead()
}
reader.readAsText(file)