src/Pure/General/completion.scala
changeset 67431 84e143e64336
parent 67311 3869b2400e22
child 67436 e446505a4ec6
equal deleted inserted replaced
67430:149b742070e9 67431:84e143e64336
   218         } yield {
   218         } yield {
   219           val description = List(xname1, "(" + descr_name + ")")
   219           val description = List(xname1, "(" + descr_name + ")")
   220           val replacement =
   220           val replacement =
   221             List(original, xname1).map(Token.explode(Keyword.Keywords.empty, _)) match {
   221             List(original, xname1).map(Token.explode(Keyword.Keywords.empty, _)) match {
   222               case List(List(tok), _) if tok.kind == Token.Kind.CARTOUCHE =>
   222               case List(List(tok), _) if tok.kind == Token.Kind.CARTOUCHE =>
   223                 Symbol.open_decoded + xname1 + Symbol.close_decoded
   223                 Library.cartouche_decoded(xname1)
   224               case List(_, List(tok)) if tok.is_name => xname1
   224               case List(_, List(tok)) if tok.is_name => xname1
   225               case _ => quote(xname1)
   225               case _ => quote(xname1)
   226             }
   226             }
   227           Item(range, original, full_name, description, replacement, 0, true)
   227           Item(range, original, full_name, description, replacement, 0, true)
   228         }
   228         }