Skip to content

Commit

Permalink
Merge pull request #56 from lucas-vidmar/patch-1
Browse files Browse the repository at this point in the history
adding more currencies
  • Loading branch information
tgrosinger authored May 22, 2024
2 parents 6673871 + e75b3c9 commit 7d35a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grammar/ledger.ne
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
newline: { match: '\n', lineBreaks: true },
ws: /[ \t]+/,
number: { match: /-?[0-9.,]+/, value: (s:string) => s.replace(/,/g, '') },
currency: /[$£₤€₿₹¥¥₩Р₽₴₫]/, // Note: Р != P
currency: /[$£₤€₿₹¥¥₩Р₽₴₫]/, // Note: Р != P
reconciled: /[!*]/,
comment: { match: /[;#|][^\n]+/, value: (s:string) => s.slice(1).trim() },
assertion: {match: /==?\*?/},
account: { match: /[^$£₤€₿₹¥¥₩Р₽₴₫;#|\n]+/, value: (s:string) => s.trim() },
account: { match: /[^$£₤€₿₹¥¥₩Р₽₴₫;#|\n]+/, value: (s:string) => s.trim() },
},
alias: {
account: { match: /[a-zA-Z0-9: ]+/, value: (s:string) => s.trim() },
Expand Down

0 comments on commit 7d35a97

Please sign in to comment.