Merge pull request #55 from simon-v/master

Ledger and Python syntax extensions
This commit is contained in:
Anthony Scopatz 2015-07-06 10:13:47 +03:00
commit 6c57011c02
2 changed files with 7 additions and 6 deletions

View File

@ -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:]]*;.*"

View File

@ -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