Skip to content

Commit

Permalink
fix: Fixed relative imports not working
Browse files Browse the repository at this point in the history
  • Loading branch information
alinalihassan committed May 6, 2022
1 parent 09e5f36 commit cea1f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liblesma/Frontend/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ Statement *Parser::ParseImport() {

if (Peek()->type == TokenType::STRING) {
token = Consume(TokenType::STRING);
filepath = token->lexeme.erase(0, 1).erase(token->lexeme.size() - 1);
filepath = token->lexeme;
} else if (Peek()->type == TokenType::IDENTIFIER) {
token = Consume(TokenType::IDENTIFIER);
filepath = getStdDir() + token->lexeme + ".les";
Expand Down

0 comments on commit cea1f6e

Please sign in to comment.