feat: add hledger (#1121)

This commit is contained in:
Léana 江 2024-08-16 14:04:21 +02:00 committed by GitHub
parent 079e4c2cfa
commit b59cbbf52f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 0 deletions

View file

@ -422,6 +422,7 @@ Haskell
Haxe
Hcl
Hex
hledger
Hlsl
HolyC
Html

View file

@ -883,6 +883,13 @@
"nested": true,
"extensions": ["lean", "hlean"]
},
"Hledger": {
"name": "hledger",
"line_comment": [";", "#"],
"multi_line_comments": [["comment", "end comment"]],
"nested": false,
"extensions": ["hledger"]
},
"Less": {
"name": "LESS",
"line_comment": ["//"],

View file

@ -0,0 +1,18 @@
# 18 lines 6 code 10 comments 2 blanks
# a comment
; another comment
; ^ a blank line
comment
account assets ; Declare valid account names and display order.
a block comment
end comment
account assets:savings ; A subaccount. This one represents a bank account.
account assets:checking ; Another. Note, 2+ spaces after the account name.
account assets:receivable ; Accounting type is inferred from english names,
account passifs ; or declared with a "type" tag, type:L
account expenses ; type:X
; A follow-on comment line, indented.
account expenses:rent ; Expense and revenue categories are also accounts.
; Subaccounts inherit their parent's type.