Changeset 11779
- Timestamp:
- 2019-10-23T18:03:10+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/developer/fortran.py
r11767 r11779 41 41 'root': [ 42 42 (r'^#.*\n', Comment.Preproc), 43 (r'^&[a-z]\w*', Name.Namespace, 'namelist'), 43 44 (r'!.*\n', Comment), 44 45 include('strings'), … … 87 88 (r'(\*\*|\*|\+|-|\/|<|>|<=|>=|==|\/=|=)', Operator), 88 89 90 # 89 91 (r'(::)', Keyword.Declaration), 90 92 … … 145 147 # Booleans 146 148 (r'\.(true|false)\.', Name.Builtin), 149 147 150 # Comparing Operators 148 151 (r'\.(eq|ne|lt|le|gt|ge|not|and|or|eqv|neqv)\.', Operator.Word), … … 150 153 # Punctuation 151 154 (r'[()\[\],:&%;.]', Punctuation), 155 ], 156 'namelist': [ 157 (r'!.*\n', Comment), 158 (r'([a-z]\w*)(\()?(\s*)?(\d*)?(\s*)?(\))?(%[a-z]\w*)?(\s*)(=)', bygroups( 159 Name.Variable, Punctuation, Text, Number.Integer, Text, Punctuation, 160 Name.Variable, Text, Operator)), 161 (r'(\*\*|\*|\+|-|\/|<|>|<=|>=|==|\/=|=)', Operator), 162 (r'\.(true|false)\.', Name.Builtin), 163 include('strings'), 164 include('nums'), 165 (r'[()\[\],:&%;.]', Punctuation), 166 (r'[\s]+', Text), 167 (r'^\/$', Name.Namespace), 152 168 ], 153 169 'strings': [ … … 155 171 (r"(?s)'(\\\\|\\[0-7]+|\\.|[^'\\])*'", String.Single), 156 172 ], 157 158 173 'nums': [ 159 174 (r'\d+(?![.e])(_[a-z]\w+)?', Number.Integer),
Note: See TracChangeset
for help on using the changeset viewer.