Skip to content

Commit

Permalink
added test files for range and highlighting support
Browse files Browse the repository at this point in the history
  • Loading branch information
Glowman554 committed Jul 30, 2024
1 parent 53f9d2b commit beaa6d4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
17 changes: 17 additions & 0 deletions validation/for_range.fl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$include <std.fl>


function spark(int argc, str[] argv) -> int {
int a = 0;
int b = 3;

range a .. b as i up {
printi(i);
}

range b .. a as j down {
printi(j);
}

return 0;
}
5 changes: 5 additions & 0 deletions validation/for_range.fl.expect
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"arguments": [],
"output": ["0", "1", "2", "3", "2", "1"],
"should_fail": false
}
2 changes: 1 addition & 1 deletion vscode/syntaxes/firestorm.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"patterns": [
{
"name": "keyword.control.firestorm",
"match": "\\b(if|else|while|loop|for|return|do|function|end|offset)\\b"
"match": "\\b(if|else|while|loop|for|return|do|function|end|offset|range|up|down)\\b"
}
]
},
Expand Down

0 comments on commit beaa6d4

Please sign in to comment.