Skip to content

Commit c83346a

Browse files
author
Maxims Enterprise
committed
1.1.1 Release - Solved bugs in lexing
1 parent 9591964 commit c83346a

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

.DS_Store

0 Bytes
Binary file not shown.

src/compile.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use crate::{error, success, success_final, utils::working, working};
88

99
pub fn compile(html: &String, file_name: String, make_path: bool) {
1010
working!("Compiling Spark into HTML...");
11+
working!("Compiling {} now...", file_name.clone());
1112
if file_name.ends_with(".html") {
1213
if make_path == true {
1314
if !fs::metadata("./build").is_ok() {

src/lexer/lexer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub fn tokenize(code: String) -> Vec<Token> {
1111
let mut line = 1;
1212

1313
loop {
14-
if i >= code.len() {
14+
if i >= code.len() || code.chars().nth(i).is_none() {
1515
break;
1616
}
1717

0 commit comments

Comments
 (0)