diff options
| author | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2006-09-16 20:57:05 +0000 |
|---|---|---|
| committer | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2006-09-16 20:57:05 +0000 |
| commit | cf72408044a01c26d2c64c76dadf0ece0da0fcd1 (patch) | |
| tree | 683c5f9aa68e8f56efc685396deeee40ace03ecb /tools | |
| parent | 0ce00c64f5112312bd909e2ae3ebf5d6fcfa3992 (diff) | |
| download | docutils-cf72408044a01c26d2c64c76dadf0ece0da0fcd1.tar.gz | |
headings containing only non-ASCII characters are now
recognized by rst-toc (thanks to zengjie) and rst-adjust
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4747 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/editors/emacs/rst.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editors/emacs/rst.el b/tools/editors/emacs/rst.el index c2ffb0208..f80cf965e 100644 --- a/tools/editors/emacs/rst.el +++ b/tools/editors/emacs/rst.el @@ -473,7 +473,7 @@ style." :group 'rst-adjust) -(defvar rst-section-text-regexp "^[ \t]*\\S-*[a-zA-Z0-9]\\S-*" +(defvar rst-section-text-regexp "^[ \t]*\\S-*\\w\\S-*" "Regular expression for valid section title text.") @@ -2798,7 +2798,7 @@ Turning on `rst-mode' calls the normal hooks `text-mode-hook' and (< emacs-major-version 21) (save-match-data (string-match "XEmacs\\|Lucid" emacs-version))) - "^a-zA-Z0-9 \t\x00-\x1F" + "^\\w \t\x00-\x1F" "^[:word:][:space:][:cntrl:]") "]\\)\\2\\2+\\)" re-hws "*$")) ) |
