mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
- Lots of syntax regex are poorly written and did not ends with a '$', which caused them competing with other regex rules.
10 lines
434 B
Text
10 lines
434 B
Text
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:]]*;.*"
|