Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| #!/usr/bin/python | |
| """ | |
| Parses Fortran Namelists | |
| based on Fortran Namelist parser for Python prog/scripts by Stephane Chamberland ([email protected]) | |
| http://code.google.com/p/fortran-namelist/ | |
| Updated by Volodymyr Vladymyrov (http://stackoverflow.com/users/1296661/vvladymyrov) to parse format presented | |
| in http://stackoverflow.com/questions/14165733/regular-expression-parsing-key-value-pairs-in-namelist-input-file | |
| added support for | |
| 1) | |
| $NAMELIST |
| <NotepadPlus> | |
| <UserLang name="Fortran Namelist" ext="nml" udlVersion="2.1"> | |
| <Settings> | |
| <Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" /> | |
| <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
| </Settings> | |
| <KeywordLists> | |
| <Keywords name="Comments">00! 01 02 03 04</Keywords> | |
| <Keywords name="Numbers, prefix1">.</Keywords> | |
| <Keywords name="Numbers, prefix2"></Keywords> |