mirror of
https://github.com/scopatz/nanorc
synced 2024-11-21 16:15:40 +01:00
bba53c3940
Duplicate syntax definition names may cause problems. Since nano comes with predefined all-lowercase syntax definitions, we use uppercase letters everywhere to reduce the risk of future conflicts
11 lines
432 B
Plaintext
11 lines
432 B
Plaintext
syntax "Ledger" "(^|\.|/)ledger|ldgr|beancount|bnct$"
|
|
|
|
color brightmagenta "^([0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}|[=~]) .*"
|
|
color blue "^[0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}"
|
|
color brightyellow "^~ .*"
|
|
color brightblue "^= .*"
|
|
color cyan "^[[:space:]]+(![[:space:]]+)?\(?[A-Za-z ]+(:[A-Za-z ]+)*\)?"
|
|
color cyan "^[[:space:]]+(![[:space:]]+)?\(?[A-Za-z_-]+(:[A-Za-z_-]+)*\)?"
|
|
color red "[*!]"
|
|
color brightblack "^[[:space:]]*;.*"
|