summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorecasglez <29178639+ecasglez@users.noreply.github.com>2021-02-12 07:53:29 +0100
committerGitHub <noreply@github.com>2021-02-12 07:53:29 +0100
commit49bdb1d10ddd0597d9267a3635d52888f540e737 (patch)
tree59287bf7a9154dbfca0d9b8d8641dbedabc33070
parent54f9d2fec71d28b2f783969a34b2134f5f5b8588 (diff)
downloadpygments-git-49bdb1d10ddd0597d9267a3635d52888f540e737.tar.gz
Fotran lexer: detect keywords formed by two keywords without inter-word spaces. (#1677)
* Fix for issue #1188. * I took the list of keywords affected by this issue from the VIM fortran lexer. * All the affeced keywords are ending keywords, that is, "end" followed by another keyword without space.
-rw-r--r--pygments/lexers/fortran.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pygments/lexers/fortran.py b/pygments/lexers/fortran.py
index 5d020f84..6c6b8f8c 100644
--- a/pygments/lexers/fortran.py
+++ b/pygments/lexers/fortran.py
@@ -55,6 +55,9 @@ class FortranLexer(RegexLexer):
'CODIMENSION', 'COMMON', 'CONCURRRENT', 'CONTIGUOUS', 'CONTAINS',
'CONTINUE', 'CRITICAL', 'CYCLE', 'DATA', 'DEALLOCATE', 'DECODE',
'DEFERRED', 'DIMENSION', 'DO', 'ELEMENTAL', 'ELSE', 'ENCODE', 'END',
+ 'ENDASSOCIATE', 'ENDBLOCK', 'ENDDO', 'ENDENUM', 'ENDFORALL',
+ 'ENDFUNCTION', 'ENDIF', 'ENDINTERFACE', 'ENDMODULE', 'ENDPROGRAM',
+ 'ENDSELECT', 'ENDSUBMODULE', 'ENDSUBROUTINE', 'ENDTYPE', 'ENDWHERE',
'ENTRY', 'ENUM', 'ENUMERATOR', 'EQUIVALENCE', 'ERROR STOP', 'EXIT',
'EXTENDS', 'EXTERNAL', 'EXTRINSIC', 'FILE', 'FINAL', 'FORALL', 'FORMAT',
'FUNCTION', 'GENERIC', 'GOTO', 'IF', 'IMAGES', 'IMPLICIT',