mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-03 04:14:43 +00: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
|
|
@ -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}|[=~]) .*"
|
||||
|
|
|
|||
|
|
@ -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: "\\\\."
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue