equal
deleted
inserted
replaced
128 val invisible_token = Token.keyword_with (fn s => s = ";") orf Token.is_kind Token.Comment; |
128 val invisible_token = Token.keyword_with (fn s => s = ";") orf Token.is_kind Token.Comment; |
129 |
129 |
130 fun output_basic tok = |
130 fun output_basic tok = |
131 let val s = Token.content_of tok in |
131 let val s = Token.content_of tok in |
132 if invisible_token tok then "" |
132 if invisible_token tok then "" |
133 else if Token.is_kind Token.Command tok then |
133 else if Token.is_command tok then |
134 "\\isacommand{" ^ output_syms s ^ "}" |
134 "\\isacommand{" ^ output_syms s ^ "}" |
135 else if Token.is_kind Token.Keyword tok andalso Lexicon.is_ascii_identifier s then |
135 else if Token.is_kind Token.Keyword tok andalso Lexicon.is_ascii_identifier s then |
136 "\\isakeyword{" ^ output_syms s ^ "}" |
136 "\\isakeyword{" ^ output_syms s ^ "}" |
137 else if Token.is_kind Token.String tok then |
137 else if Token.is_kind Token.String tok then |
138 output_syms s |> enclose |
138 output_syms s |> enclose |