From 430ca22c74919524a4c8c7f6301e6539fb571b0b Mon Sep 17 00:00:00 2001 From: Makarius Wenzel Date: Wed, 9 Jul 2008 15:07:43 +0000 Subject: more precise regexps isar-token-match, isar-control-token-match; --- isar/isar-unicode-tokens.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'isar/isar-unicode-tokens.el') diff --git a/isar/isar-unicode-tokens.el b/isar/isar-unicode-tokens.el index 22a02e89..fa162330 100644 --- a/isar/isar-unicode-tokens.el +++ b/isar/isar-unicode-tokens.el @@ -15,8 +15,8 @@ (defconst isar-charref-format "\\<#x%x>") (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-token-match "\\\\<\\([a-zA-Z][a-zA-Z0-9_']+\\)>") +(defconst isar-control-token-match "\\\\<^\\([a-zA-Z][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]+>\\|.") -- cgit v1.2.3