mirror of
https://github.com/scopatz/nanorc
synced 2024-10-31 23:00:00 +01:00
3b48b83389
- Lots of syntax regex are poorly written and did not ends with a '$', which caused them competing with other regex rules.
11 lines
434 B
Plaintext
11 lines
434 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:]]*;.*"
|