Skip to content

Commit

Permalink
Add Vietnam Dong symbol
Browse files Browse the repository at this point in the history
Fixes #44
  • Loading branch information
tgrosinger committed Apr 18, 2023
1 parent 1249d27 commit 80eddd2
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 80eddd2

Please sign in to comment.