diff options
| author | Georg Brandl <georg@python.org> | 2015-02-22 08:24:17 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2015-02-22 08:24:17 +0100 |
| commit | ae1679312d44b5fdaa50bdf0cdedb1bce3657ebe (patch) | |
| tree | f0f1d25b1733404d55ce0e6634b45bf6099ac58d | |
| parent | 9b3d133807d84fb1330bc87dc8afc8aa8878c1c4 (diff) | |
| download | pygments-ae1679312d44b5fdaa50bdf0cdedb1bce3657ebe.tar.gz | |
Fix nonmacro chars.
| -rw-r--r-- | pygments/lexers/lisp.py | 4 |
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 |
