Improve yaml string highlighting

Fixes #783
This commit is contained in:
Zachary Yedidia
2017-08-14 11:28:10 -04:00
parent f199c15269
commit 773284369b
3 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
filetype: ledger
detect:
filename: "(^|\\.|/)ledger|ldgr|beancount|bnct$"
filename: "(^|\\.|/)(ledger|ldgr|beancount|bnct)$"
rules:
- special: "^([0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}|[=~]) .*"

View File

@@ -15,16 +15,16 @@ rules:
- special: "(^---|^\\.\\.\\.|^%YAML|^%TAG)"
- constant.string:
start: "\""
start: "(^| )\""
end: "\""
skip: "\\\\."
rules:
- constant.specialChar: "\\\\."
- constant.string:
start: "'"
start: "(^| )'"
end: "'"
skip: "\\\\."
skip: "(\\\\.)|('')"
rules:
- constant.specialChar: "\\\\."