src/Pure/Isar/outer_syntax.scala
changeset 63587 881e8e2cfec2
parent 63584 68751fe1c036
child 63592 64db21931bcb
     1.1 --- a/src/Pure/Isar/outer_syntax.scala	Tue Aug 02 18:58:49 2016 +0200
     1.2 +++ b/src/Pure/Isar/outer_syntax.scala	Tue Aug 02 21:04:52 2016 +0200
     1.3 @@ -89,10 +89,11 @@
     1.4    {
     1.5      val keywords1 = keywords + (name, kind, tags)
     1.6      val completion1 =
     1.7 -      completion.add_keyword(name).add_abbrevs(
     1.8 -        if (Keyword.theory_block.contains(kind))
     1.9 -          List((name, name + "\nbegin\n\u0007\nend"), (name, name))
    1.10 -        else List((name, name)))
    1.11 +      completion.add_keyword(name).
    1.12 +        add_abbrevs(
    1.13 +          (if (Keyword.theory_block.contains(kind)) List((name, name + "\nbegin\n\u0007\nend"))
    1.14 +           else Nil) :::
    1.15 +          (if (Completion.Word_Parsers.is_word(name)) List((name, name)) else Nil))
    1.16      new Outer_Syntax(keywords1, completion1, language_context, true)
    1.17    }
    1.18