File: ledger.yaml

package info (click to toggle)
micro 2.0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,828 kB
  • sloc: sh: 247; makefile: 77; xml: 53
file content (14 lines) | stat: -rw-r--r-- 486 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
filetype: ledger

detect:
    filename: "(^|\\.|/)(ledger|ldgr|beancount|bnct)$"

rules:
    - special: "^([0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}|[=~]) .*"
    - constant: "^[0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}"
    - statement: "^~ .*"
    - identifier.var: "^= .*"
    - identifier: "^[[:space:]]+(![[:space:]]+)?\\(?[A-Za-z ]+(:[A-Za-z ]+)*\\)?"
    - identifier: "^[[:space:]]+(![[:space:]]+)?\\(?[A-Za-z_\\-]+(:[A-Za-z_\\-]+)*\\)?"
    - symbol: "[*!]"
    - comment: "^[[:space:]]*;.*"