aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-12-04 05:07:41 +0100
committerLars Ingebrigtsen2021-12-04 05:07:41 +0100
commit6042417664e7771b030449e6938e1c149100b3b4 (patch)
treee68e274da75a968e34492a1f5133ca7e6578c03c
parentb060c3844fb8ad5a134d160a844c5bf898024d15 (diff)
downloademacs-6042417664e7771b030449e6938e1c149100b3b4.tar.gz
emacs-6042417664e7771b030449e6938e1c149100b3b4.zip
Fix highlighting of "Exit*" phrases in f90-mode
* lisp/progmodes/f90.el (f90-font-lock-keywords-2): Don't highlight phrases that start with "Exit" as an exit statement (bug#14442).
-rw-r--r--lisp/progmodes/f90.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el
index acc0d96ea5b..eb6da20ff7f 100644
--- a/lisp/progmodes/f90.el
+++ b/lisp/progmodes/f90.el
@@ -647,7 +647,7 @@ do\\([ \t]*while\\)?\\|select[ \t]*\\(?:case\\|type\\)\\|where\\|\
647forall\\|block\\|critical\\)\\)\\_>" 647forall\\|block\\|critical\\)\\)\\_>"
648 (2 font-lock-constant-face nil t) (3 font-lock-keyword-face)) 648 (2 font-lock-constant-face nil t) (3 font-lock-keyword-face))
649 ;; Implicit declaration. 649 ;; Implicit declaration.
650 '("\\_<\\(implicit\\)[ \t]*\\(real\\|integer\\|c\\(haracter\\|omplex\\)\ 650 '("\\_<\\(implicit\\)[ \t]+\\(real\\|integer\\|c\\(haracter\\|omplex\\)\
651\\|enumerator\\|procedure\\|\ 651\\|enumerator\\|procedure\\|\
652logical\\|double[ \t]*precision\\|type[ \t]*(\\(?:\\sw\\|\\s_\\)+)\\|none\\)[ \t]*" 652logical\\|double[ \t]*precision\\|type[ \t]*(\\(?:\\sw\\|\\s_\\)+)\\|none\\)[ \t]*"
653 (1 font-lock-keyword-face) (2 font-lock-type-face)) 653 (1 font-lock-keyword-face) (2 font-lock-type-face))
@@ -657,8 +657,10 @@ logical\\|double[ \t]*precision\\|type[ \t]*(\\(?:\\sw\\|\\s_\\)+)\\|none\\)[ \t
657 '("\\(&\\)[ \t]*\\(!\\|$\\)" (1 font-lock-keyword-face)) 657 '("\\(&\\)[ \t]*\\(!\\|$\\)" (1 font-lock-keyword-face))
658 "\\_<\\(then\\|continue\\|format\\|include\\|\\(?:error[ \t]+\\)?stop\\|\ 658 "\\_<\\(then\\|continue\\|format\\|include\\|\\(?:error[ \t]+\\)?stop\\|\
659return\\)\\_>" 659return\\)\\_>"
660 '("\\_<\\(exit\\|cycle\\)[ \t]*\\(\\(?:\\sw\\|\\s_\\)+\\)?\\_>" 660 '("\\_<\\(exit\\|cycle\\)[ \t]+\\(\\(?:\\sw\\|\\s_\\)+\\)?\\_>"
661 (1 font-lock-keyword-face) (2 font-lock-constant-face nil t)) 661 (1 font-lock-keyword-face) (2 font-lock-constant-face nil t))
662 '("\\_<\\(exit\\|cycle\\)\\_>"
663 (1 font-lock-keyword-face))
662 '("\\_<\\(case\\)[ \t]*\\(default\\|(\\)" . 1) 664 '("\\_<\\(case\\)[ \t]*\\(default\\|(\\)" . 1)
663 ;; F2003 "class default". 665 ;; F2003 "class default".
664 '("\\_<\\(class\\)[ \t]*default" . 1) 666 '("\\_<\\(class\\)[ \t]*default" . 1)