summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2015-02-22 08:24:17 +0100
committerGeorg Brandl <georg@python.org>2015-02-22 08:24:17 +0100
commitae1679312d44b5fdaa50bdf0cdedb1bce3657ebe (patch)
treef0f1d25b1733404d55ce0e6634b45bf6099ac58d
parent9b3d133807d84fb1330bc87dc8afc8aa8878c1c4 (diff)
downloadpygments-ae1679312d44b5fdaa50bdf0cdedb1bce3657ebe.tar.gz
Fix nonmacro chars.
-rw-r--r--pygments/lexers/lisp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/lisp.py b/pygments/lexers/lisp.py
index 198e089e..729916e3 100644
--- a/pygments/lexers/lisp.py
+++ b/pygments/lexers/lisp.py
@@ -1497,8 +1497,8 @@ class EmacsLispLexer(RegexLexer):
# couple of useful regexes
# characters that are not macro-characters and can be used to begin a symbol
- nonmacro = r'\\.|[a-zA-Z_!$%&*+-/<=>?@^{}~|]'
- constituent = nonmacro + '|[0-9#.:]'
+ nonmacro = r'\\.|[\w!$%&*+-/<=>?@^{}~|]'
+ constituent = nonmacro + '|[#.:]'
terminated = r'(?=[ "()\]\'\n,;`])' # whitespace or terminating macro characters
# symbol token, reverse-engineered from hyperspec