src/Pure/Tools/rail.ML
changeset 67388 5fc0b0c9a735
parent 67387 ff07dd9c7cb4
child 67425 7d4a088dbc0e
equal deleted inserted replaced
67387:ff07dd9c7cb4 67388:5fc0b0c9a735
    82 fun print_keyword x = print_kind Keyword ^ " " ^ quote x;
    82 fun print_keyword x = print_kind Keyword ^ " " ^ quote x;
    83 
    83 
    84 fun reports_of_token (Token ((pos, _), (Keyword, x))) =
    84 fun reports_of_token (Token ((pos, _), (Keyword, x))) =
    85       map (pair pos) (the_list (Symtab.lookup keywords x) @ Completion.suppress_abbrevs x)
    85       map (pair pos) (the_list (Symtab.lookup keywords x) @ Completion.suppress_abbrevs x)
    86   | reports_of_token (Token ((pos, _), (String, _))) = [(pos, Markup.inner_string)]
    86   | reports_of_token (Token ((pos, _), (String, _))) = [(pos, Markup.inner_string)]
    87   | reports_of_token (Token ((pos, _), (Comment, _))) = [(pos, Markup.inner_comment)]
       
    88   | reports_of_token (Token (_, (Antiq antiq, _))) = Antiquote.antiq_reports [Antiquote.Antiq antiq]
    87   | reports_of_token (Token (_, (Antiq antiq, _))) = Antiquote.antiq_reports [Antiquote.Antiq antiq]
    89   | reports_of_token _ = [];
    88   | reports_of_token _ = [];
    90 
    89 
    91 
    90 
    92 (* stopper *)
    91 (* stopper *)