Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #66 from cubos/feat/fn-syntax
Browse files Browse the repository at this point in the history
Lexer: add "fn" as an alias for "function"
  • Loading branch information
dgadelha authored May 8, 2020
2 parents e347c4a + 365eff6 commit 5188834
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/syntax/lexer.cr
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ class Lexer
when "import" ; ImportKeywordToken.new
when "get" ; GetKeywordToken.new
when "function"; FunctionKeywordToken.new
when "fn" ; FunctionKeywordToken.new
when "true" ; TrueKeywordToken.new
when "false" ; FalseKeywordToken.new
else
Expand Down

0 comments on commit 5188834

Please sign in to comment.