mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
Merge pull request #55 from simon-v/master
Ledger and Python syntax extensions
This commit is contained in:
commit
6c57011c02
2 changed files with 7 additions and 6 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue