Skip to content

Commit

Permalink
Remove deprecated warning Char#alpha? (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
msa7 authored and jeromegn committed Dec 27, 2016
1 parent 0a89a48 commit 6f8c5b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slang/lexer.cr
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module Slang
end
when '\n'
consume_newline
when '.', '#', .alpha?
when '.', '#', .ascii_letter?
inline ? consume_text : consume_element
when '-'
inline ? consume_text : consume_control
Expand Down Expand Up @@ -61,7 +61,7 @@ module Slang

loop do
case current_char
when .alpha?
when .ascii_letter?
consume_element_name
when '.'
next_char # skip the . or # at the beginning
Expand Down

0 comments on commit 6f8c5b2

Please sign in to comment.