changelog.nanorc (857B)
1 ## Syntax highlighting for Changelogs. 2 3 ## Original author: Benno Schulenberg 4 ## License: GPL version 3 or newer 5 6 syntax changelog "Change[Ll]og[^/]*$" 7 8 # Author lines. 9 color green "^(19|20).*" 10 # Dates. 11 color red "^(19|20)[[:digit:]-]{8}" 12 # Email addresses. 13 color yellow "<[^>]*@[^>]*>" 14 15 # Command-line options. 16 color cyan "[[:blank:]]-[[:alpha:]$]|--[[:lower:]8-]+" 17 # Bug and patch numbers. 18 color cyan "(BZ|bug|patch) #[[:digit:]]+|PR [[:alnum:]]+/[[:digit:]]+" 19 # Probable constants, for variety. 20 color brightred "\<[[:upper:]_][[:upper:][:digit:]_]+\>" 21 # Key sequences. 22 color brightblue "\^[[:upper:]\^_]|\<M-.|\<F1?[[:digit:]]|(\^|M-)Space" 23 24 # Changed files. 25 color magenta start="^( | {8})\* " end="(:( |$)|^$)" 26 27 # Release markers. 28 color brightblue "^(GNU )?nano[- ][[:digit:]]\.[[:digit:]]\.[^ ]+" 29 30 # Trailing whitespace. 31 color ,green "[[:space:]]+$"