aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/NEWS3
-rw-r--r--man/programs.texi9
2 files changed, 12 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 35c4e871ff3..7c49adf99a8 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -705,7 +705,10 @@ instead of using default-major-mode.
705--- 705---
706** Perl mode has a new variable `perl-indent-continued-arguments'. 706** Perl mode has a new variable `perl-indent-continued-arguments'.
707 707
708+++
708** Fortran mode has a new variable `fortran-directive-re'. 709** Fortran mode has a new variable `fortran-directive-re'.
710Adapt this to match the format of any compiler directives you use.
711Lines that match are never indented, and are given distinctive font-locking.
709 712
710--- 713---
711** F90 mode has new navigation commands `f90-end-of-block', 714** F90 mode has new navigation commands `f90-end-of-block',
diff --git a/man/programs.texi b/man/programs.texi
index a34d84e5d38..70f3c25fd1f 100644
--- a/man/programs.texi
+++ b/man/programs.texi
@@ -2155,6 +2155,15 @@ full-line comments by setting the variable
2155@code{fortran-comment-indent-char} to the single-character string you want 2155@code{fortran-comment-indent-char} to the single-character string you want
2156to use. 2156to use.
2157 2157
2158@vindex fortran-directive-re
2159 Compiler directive lines, or preprocessor lines, have much the same
2160appearance as comment lines. It is important, though, that such lines
2161never be indented at all, no matter what the value of
2162@code{fortran-comment-indent-style}. The variable
2163@code{fortran-directive-re} is a regular expression that specifies which
2164lines are directives. Matching lines are never indented, and receive
2165distinctive font-locking.
2166
2158@vindex comment-line-start 2167@vindex comment-line-start
2159@vindex comment-line-start-skip 2168@vindex comment-line-start-skip
2160 Fortran mode introduces two variables @code{comment-line-start} and 2169 Fortran mode introduces two variables @code{comment-line-start} and