Skip to content

Commit 7dfd7c2

Browse files
authored
Fix tokenization of 1.# (#142)
1 parent 06801f2 commit 7dfd7c2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/tokenize.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ function lex_digit(l::Lexer, kind)
788788
|| ppc == '"'
789789
|| ppc == ':'
790790
|| ppc == '?'
791+
|| ppc == '#'
791792
|| ppc == EOF_CHAR))
792793
kind = K"Integer"
793794

test/tokenize.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ end
565565
@test tok("1.,").kind == K"Float"
566566
@test tok("1.;").kind == K"Float"
567567
@test tok("1.@").kind == K"Float"
568+
@test tok("1.#").kind == K"Float"
568569
@test tok("1.").kind == K"Float"
569570
@test tok("1.\"text\" ").kind == K"Float"
570571

0 commit comments

Comments
 (0)