Skip to content

Commit 9818520

Browse files
committed
add missing ELIF
1 parent 725b773 commit 9818520

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

formatter/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ const ControlKeywords = [
488488
"FORPLAYERS",
489489
"IF",
490490
"ELSEIF",
491+
"ELIF",
491492
"ELSE",
492493
"ENDIF",
493494
"WHILE",

formatter/scp.formatter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class SCPFormatter {
8181
* @returns {boolean} True if the keyword is a block middle
8282
*/
8383
isBlockMiddle(keyword) {
84-
return keyword === "ELSE" || keyword === "ELSEIF";
84+
return keyword === "ELSE" || keyword === "ELSEIF" || keyword === "ELIF";
8585
}
8686

8787
/**

0 commit comments

Comments
 (0)