proper Char comparison, despite weakly-typed Scala (cf. 5ff5208de089);
authorwenzelm
Mon, 10 Mar 2014 22:40:48 +0100
changeset 56042 d3c35a300433
parent 56041 1403a22e5538
child 56043 0b25c3d34b77
proper Char comparison, despite weakly-typed Scala (cf. 5ff5208de089);
src/Pure/General/completion.scala
--- a/src/Pure/General/completion.scala	Mon Mar 10 22:39:37 2014 +0100
+++ b/src/Pure/General/completion.scala	Mon Mar 10 22:40:48 2014 +0100
@@ -217,7 +217,7 @@
     private def underscores: Parser[String] = "_*".r
 
     def is_word(s: CharSequence): Boolean = word_regex.pattern.matcher(s).matches
-    def is_word_char(c: Char): Boolean = Symbol.is_ascii_letdig(c) || c == "."
+    def is_word_char(c: Char): Boolean = Symbol.is_ascii_letdig(c) || c == '.'
 
     def extend_word(text: CharSequence, offset: Text.Offset): Text.Offset =
     {