src/Pure/Syntax/lexicon.ML
changeset 77846 5ba68d3bd741
parent 73198 a9eaf8c3b728
child 80809 4a64fc4d1cde
--- a/src/Pure/Syntax/lexicon.ML	Fri Apr 14 16:01:00 2023 +0200
+++ b/src/Pure/Syntax/lexicon.ML	Fri Apr 14 20:42:17 2023 +0200
@@ -130,7 +130,7 @@
     String, Cartouche, Space, Comment Comment.Comment, Comment Comment.Cancel,
     Comment Comment.Latex, Dummy, EOF];
 
-fun token_kind i = Vector.sub (token_kinds, i);
+val token_kind = Vector.nth token_kinds;
 fun token_kind_index k = #1 (the (Vector.findi (fn (_, k') => k = k') token_kinds));