aboutsummaryrefslogtreecommitdiffhomepage
path: root/isar
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2008-02-04 12:53:38 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2008-02-04 12:53:38 +0000
commitb969f32e734e0474ff90616d1114c33c8b969897 (patch)
treeea64484c17d931233ef1179e4016b60ea69a3aae /isar
parent29f0166b31aa7b9ea1ab60b100015c6f2b742e28 (diff)
Support Isabelle control sequences for subscripts/superscripts
Diffstat (limited to 'isar')
-rw-r--r--isar/isar-unicode-tokens.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/isar/isar-unicode-tokens.el b/isar/isar-unicode-tokens.el
index d8c581a2..f1774ec5 100644
--- a/isar/isar-unicode-tokens.el
+++ b/isar/isar-unicode-tokens.el
@@ -16,7 +16,10 @@
(defconst isar-token-prefix "\\<")
(defconst isar-token-suffix ">")
(defconst isar-token-match "\\\\<\\([a-zA-Z0-9]+\\)")
+(defconst isar-control-token-match "\\\\<^\\([a-zA-Z0-9]+\\)>")
+(defconst isar-control-token-format "\\<^%s>")
(defconst isar-hexcode-match "\\\\<\\(#[xX][0-9A-Fa-f]+\\)")
+(defconst isar-next-character-regexp "\\\\<#[xX][0-9A-Fa-f]+>\\|.")
(defcustom isar-token-name-alist
'(; token name, unicode char sequence