aboutsummaryrefslogtreecommitdiffhomepage
path: root/isar/isar-syntax.el
diff options
context:
space:
mode:
Diffstat (limited to 'isar/isar-syntax.el')
-rw-r--r--isar/isar-syntax.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/isar/isar-syntax.el b/isar/isar-syntax.el
index 336305b0..6b8f4f30 100644
--- a/isar/isar-syntax.el
+++ b/isar/isar-syntax.el
@@ -192,9 +192,10 @@
; l "\\|"))
(defconst isar-long-id-stuff "\\(?:[A-Za-z0-9'_.]+\\)")
-(defconst isar-ext-letter "\\(?:\\\\<[A-Za-z]+>\\|[A-Za-z]\\)")
+(defconst isar-ext-first "\\(?:\\\\<[A-Za-z]+>\\|[A-Za-z]\\)")
+(defconst isar-ext-rest "\\(?:\\\\<[A-Za-z]+>\\|[A-Za-z0-9'_]\\)*")
-(defconst isar-id (concat "\\(?:" isar-ext-letter "+\\)"))
+(defconst isar-id (concat "\\(?:" isar-ext-first isar-ext-rest "\\)"))
(defconst isar-idx (concat isar-id "\\(?:\\.[0-9]+\\)?"))
(defconst isar-string "\"\\(?:\\(?:[^\"]\\|\\\\\"\\)*\\)\"")