/usr/share/source-highlight/fortran.lang is in libsource-highlight-common 3.1.8-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | # Fortran language definition file for GNU Source-highlight
keyword = "ACCESS|ASSIGN|BACKSPACE|BLANK|BLOCK|CALL",
"CLOSE|COMMON|CONTINUE|DATA|DIMENSION|DIRECT|DO",
"ELSE|ENDIF|ENDDO|END",
"ENTRY|EOF|EQUIVALENCE|ERR|EXIST|EXTERNAL|FILE|FMT|FORM",
"FORMAT|FORMATTED|FUNCTION|GO|TO|IF|IMPLICIT|INCLUDE|INQUIRE",
"INTRINSIC|IOSTAT|LOGICAL|NAMED|NAMELIST|NEXTREC|NUMBER|OPEN|OPENED",
"PARAMETER|PAUSE|PRINT|PROGRAM|READ|REC|RECL",
"RETURN|REWIND|SEQUENTIAL|STATUS|STOP|SUBROUTINE|THEN|TYPE",
"UNFORMATTED|UNIT|WRITE|SAVE"
nonsensitive
# Fortran 90
keyword = "ALLOCATE|ALLOCATABLE|CASE|CONTAINS|CYCLE|DEALLOCATE",
"ELSEWHERE|EXIT|INTERFACE|INTENT|MODULE|ONLY|OPERATOR",
"OPTIONAL|POINTER|PRIVATE|PROCEDURE|PUBLIC|RESULT|RECURSIVE",
"SELECT|SEQUENCE|TARGET|USE|WHILE|WHERE"
nonsensitive
# Fortran 95
keyword = "ELEMENTAL|FORALL|PURE"
nonsensitive
# Fortran 2003
keyword = "ABSTRACT|CLASS|DELEGATE|STATIC|REFERENCE|ROUND",
"DECIMAL|SIGN|ENCODING|IOMSG|ENDFILE|NEXTREC|PENDING",
"PASS|ASSOCIATE|FLUSH|DECORATE|EXTENDS|EXTENSIBLE|GENERIC",
"NON_OVERRIDABLE|ENUM|ENUMERATOR|TYPEALIAS|MOVE_ALLOC"
nonsensitive
keyword = "ASYNCHRONOUS|BIND|PROTECTED|VOLATILE"
nonsensitive
# Continuation character
specialchar = "&"
comment start "!"
# Real constants
number = '[+-]?\<([[:digit:]]*\.)?[[:digit:]]*([eEdDqQ][+-]?[[:digit:]]+)?(_[[:digit:][:alpha:]]+)?\>'
# Binary, octal, and hexadecimal constants
number = 'b\'\<[01]+\>\''
number = 'o\'\<[0-7]+\>\''
number = 'z\'\<[A-Fa-f0-9]+\>\''
# fortran strings have no \ escape char
string delim "\"" "\""
string delim "'" "'"
type = "CHARACTER|DOUBLE|INTEGER|REAL|PRECISION",
"COMPLEX" nonsensitive
include "symbols.lang"
include "function.lang"
|