Skip to content

Commit

Permalink
Merge pull request #38 from nlsandler/ident-starts-with-kw
Browse files Browse the repository at this point in the history
fixes #36
  • Loading branch information
nlsandler authored Jul 12, 2024
2 parents 5cfdb1f + 79255d8 commit b160672
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion expected_results.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions tests/chapter_5/valid/kw_var_names.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Test that we can properly lex identifiers that start with keywords

int main(void) {
int return_val = 3;
int void2 = 2;
return return_val + void2;
}

0 comments on commit b160672

Please sign in to comment.