mirror of
https://github.com/scopatz/nanorc
synced 2024-11-23 19:00:27 +01:00
Merge pull request #55 from simon-v/master
Ledger and Python syntax extensions
This commit is contained in:
commit
6c57011c02
|
@ -1,9 +1,10 @@
|
|||
syntax "ledger" "(^|\.|/)ledger$"
|
||||
syntax "ledger" "(^|\.|/)ledger|beancount$"
|
||||
|
||||
color brightmagenta "^([0-9]{4}/[0-9]{2}/[0-9]{2}|[=~]) .*"
|
||||
color blue "^[0-9]{4}/[0-9]{2}/[0-9]{2}"
|
||||
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:]]+\(?[A-Za-z ]+(:[A-Za-z ]+)*\)?"
|
||||
color red "[*]"
|
||||
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:]]*;.*"
|
||||
|
|
|
@ -4,7 +4,7 @@ syntax "python" "\.py$"
|
|||
header "^#!.*/(env +)?python( |$)"
|
||||
|
||||
## built-in objects
|
||||
color cyan "\<(None|self)\>"
|
||||
color cyan "\<(None|self|True|False)\>"
|
||||
## built-in attributes
|
||||
color cyan "\<(__builtin__|__dict__|__methods__|__members__|__class__|__bases__|__import__|__name__|__doc__|__self__|__debug__)\>"
|
||||
## built-in functions
|
||||
|
|
Loading…
Reference in New Issue
Block a user