mirror of
https://github.com/XAMPPRocky/tokei
synced 2024-09-28 20:13:35 +00:00
feat: add hledger (#1121)
This commit is contained in:
parent
079e4c2cfa
commit
b59cbbf52f
|
@ -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": ["//"],
|
||||
|
|
18
tests/data/hledger.hledger
Normal file
18
tests/data/hledger.hledger
Normal 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.
|
Loading…
Reference in a new issue