aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--isar/isar-syntax.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/isar/isar-syntax.el b/isar/isar-syntax.el
index 081d09e5..dfab37e4 100644
--- a/isar/isar-syntax.el
+++ b/isar/isar-syntax.el
@@ -152,6 +152,10 @@
(defconst isar-string "\"\\(\\([^\\\"]\\|\\\\\"\\)*\\)\"")
+(defconst isar-any-command-regexp
+ (isar-ids-to-regexp isar-keywords-major)
+ "Regexp matching any Isabelle/Isar command keyword.")
+
(defconst isar-name-regexp
(concat "\\s-*\\(" isar-string "\\|" isar-id "\\)\\s-*")
"Regexp matching Isabelle/Isar names, with contents grouped.")