diff options
| author | Stefan Monnier | 2013-05-14 20:52:07 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-05-14 20:52:07 -0400 |
| commit | 5ac2eb344ff68720495d655bccd4c19ac92b04d9 (patch) | |
| tree | 4e4030e53385f47ac8b324e95bd092d81c131282 /lisp/progmodes | |
| parent | 180ed218429ec9c0ce8e3ee186a47c9565459eff (diff) | |
| download | emacs-5ac2eb344ff68720495d655bccd4c19ac92b04d9.tar.gz emacs-5ac2eb344ff68720495d655bccd4c19ac92b04d9.zip | |
* lisp/progmodes/f90.el (f90-blocks-re): Include the terminating \> in the
surrounding group.
* src/regex.c (regex_compile) [\=, \>, \<]: Don't forget to set laststart.
Fixes: debbugs:14402
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/f90.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el index a8f53d397d6..d7d0c109452 100644 --- a/lisp/progmodes/f90.el +++ b/lisp/progmodes/f90.el | |||
| @@ -249,8 +249,8 @@ | |||
| 249 | "Qualification of END statements according to the matching block start. | 249 | "Qualification of END statements according to the matching block start. |
| 250 | For example, change the END that closes an IF block to END IF. | 250 | For example, change the END that closes an IF block to END IF. |
| 251 | If the block has a label, add it as well (unless `f90-smart-end-names' | 251 | If the block has a label, add it as well (unless `f90-smart-end-names' |
| 252 | says not to). Allowed values are 'blink, 'no-blink, and nil. If nil, | 252 | says not to). Allowed values are `blink', `no-blink', and nil. If nil, |
| 253 | nothing is done. The other two settings have the same effect, but 'blink | 253 | nothing is done. The other two settings have the same effect, but `blink' |
| 254 | additionally blinks the cursor to the start of the block." | 254 | additionally blinks the cursor to the start of the block." |
| 255 | :type '(choice (const blink) (const no-blink) (const nil)) | 255 | :type '(choice (const blink) (const no-blink) (const nil)) |
| 256 | :safe (lambda (value) (memq value '(blink no-blink nil))) | 256 | :safe (lambda (value) (memq value '(blink no-blink nil))) |
| @@ -842,14 +842,14 @@ Can be overridden by the value of `font-lock-maximum-decoration'.") | |||
| 842 | 842 | ||
| 843 | ;; Regexps for finding program structures. | 843 | ;; Regexps for finding program structures. |
| 844 | (defconst f90-blocks-re | 844 | (defconst f90-blocks-re |
| 845 | (concat "\\(block[ \t]*data\\|" | 845 | (concat "\\(\\(?:block[ \t]*data\\|" |
| 846 | (regexp-opt '("do" "if" "interface" "function" "module" "program" | 846 | (regexp-opt '("do" "if" "interface" "function" "module" "program" |
| 847 | "select" "subroutine" "type" "where" "forall" | 847 | "select" "subroutine" "type" "where" "forall" |
| 848 | ;; F2003. | 848 | ;; F2003. |
| 849 | "enum" "associate" | 849 | "enum" "associate" |
| 850 | ;; F2008. | 850 | ;; F2008. |
| 851 | "submodule" "block" "critical")) | 851 | "submodule" "block" "critical")) |
| 852 | "\\)\\_>") | 852 | "\\)\\_>\\)") |
| 853 | "Regexp potentially indicating a \"block\" of F90 code.") | 853 | "Regexp potentially indicating a \"block\" of F90 code.") |
| 854 | 854 | ||
| 855 | (defconst f90-program-block-re | 855 | (defconst f90-program-block-re |
| @@ -1138,8 +1138,8 @@ Variables controlling indentation style and extra features: | |||
| 1138 | Automatic insertion of \& at beginning of continuation lines (default t). | 1138 | Automatic insertion of \& at beginning of continuation lines (default t). |
| 1139 | `f90-smart-end' | 1139 | `f90-smart-end' |
| 1140 | From an END statement, check and fill the end using matching block start. | 1140 | From an END statement, check and fill the end using matching block start. |
| 1141 | Allowed values are 'blink, 'no-blink, and nil, which determine | 1141 | Allowed values are `blink', `no-blink', and nil, which determine |
| 1142 | whether to blink the matching beginning (default 'blink). | 1142 | whether to blink the matching beginning (default `blink'). |
| 1143 | `f90-auto-keyword-case' | 1143 | `f90-auto-keyword-case' |
| 1144 | Automatic change of case of keywords (default nil). | 1144 | Automatic change of case of keywords (default nil). |
| 1145 | The possibilities are `downcase-word', `upcase-word', `capitalize-word'. | 1145 | The possibilities are `downcase-word', `upcase-word', `capitalize-word'. |