Index: trunk/lib/dhaka/lexer/regex_grammar.rb
===================================================================
--- trunk/lib/dhaka/lexer/regex_grammar.rb	(revision 147)
+++ trunk/lib/dhaka/lexer/regex_grammar.rb	(working copy)
@@ -74,7 +74,7 @@
       
       for_symbol('LowercaseLetter') do
         LOWERCASE_LETTERS.each do |letter|
-          send("lower_char_letter_#{letter}", letter) do
+          send("lower_char_letter_#{letter}", letter.chars) do
             letter
           end
         end
@@ -82,7 +82,7 @@
       
       for_symbol('UppercaseLetter') do
         UPPERCASE_LETTERS.each do |letter|
-          send("upper_case_letter_#{letter}", letter) do
+          send("upper_case_letter_#{letter}", letter.chars) do
             letter
           end
         end
@@ -90,7 +90,7 @@
 
       for_symbol('Digit') do
         DIGITS.each do |digit|
-          send("digit_#{digit}", digit) do
+          send("digit_#{digit}", digit.chars) do
             digit
           end
         end
@@ -98,7 +98,7 @@
 
       for_symbol('Whitespace') do
         WHITESPACE.each do |whitespace_char|
-          send("whitespace_#{whitespace_char[0]}", whitespace_char) do
+          send("whitespace_#{whitespace_char[0]}", whitespace_char.chars) do
             whitespace_char
           end
         end
@@ -106,7 +106,7 @@
       
       for_symbol('Symbol') do
         SYMBOLS.each do |symbol_char|
-          send("symbol_char_#{symbol_char[0]}", symbol_char) do
+          send("symbol_char_#{symbol_char[0]}", symbol_char.chars) do
             symbol_char
           end
         end
@@ -114,7 +114,7 @@
 
       for_symbol('SetCharacter') do
         (ALL_CHARACTERS - SET_OPERATOR_CHARACTERS).each do |char|
-          send("set_character_#{char[0]}", char) do
+          send("set_character_#{char[0]}", char.chars) do
             char
           end
         end
Index: trunk/lib/dhaka/lexer/specification.rb
===================================================================
--- trunk/lib/dhaka/lexer/specification.rb	(revision 147)
+++ trunk/lib/dhaka/lexer/specification.rb	(working copy)
@@ -50,8 +50,8 @@
       # are LexerRun#current_lexeme and LexerRun#create_token.
       def for_pattern(pattern, &blk)
         source = case pattern
-                   when String : pattern
-                   when Regexp : pattern.source
+                   when String then pattern
+                   when Regexp then pattern.source
                  end
         items[source] = LexerSpecificationItem.new(source, priority, blk)
         self.priority += 1
