Skip to content

Commit

Permalink
Bean language support
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Sep 30, 2024
1 parent ac98feb commit 8acd9e7
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 21 deletions.
1 change: 1 addition & 0 deletions LANGUAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ BASH (bash,bash_login,bash_logout,bash_profile,bashrc,.bash_login,.bash_logout,.
Basic (bas)
Batch (bat,btm,cmd)
Bazel (bzl,build.bazel,build,workspace)
Bean (bean,beancount)
Bicep (bicep)
Bitbake (bb,bbappend,bbclass)
Bitbucket Pipeline (bitbucket-pipelines.yml)
Expand Down
6 changes: 3 additions & 3 deletions SCC-OUTPUT-REPORT.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<th>447</th>
<th>7659</th>
<th>1529</th>
<th>253872</th>
<th>253964</th>
<th>4067</th>
</tr><tr>
<td>processor/formatters.go</td>
Expand Down Expand Up @@ -288,7 +288,7 @@
<td>0</td>
<td>4</td>
<td>0</td>
<td>21533</td>
<td>21625</td>
<td>5</td>
</tr></tbody>
<tfoot><tr>
Expand All @@ -299,7 +299,7 @@
<th>447</th>
<th>7659</th>
<th>1529</th>
<th>253872</th>
<th>253964</th>
<th>4067</th>
</tr>
<tr>
Expand Down
17 changes: 17 additions & 0 deletions examples/language/bean.beancount
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
2014-02-05 * "Moving money to Isle of Man" ^transfers-offshore-17
Assets:WellsFargo:Savings -40000.00 USD
Assets:WellsFargo:Checking 40000.00 USD

2014-02-09 * "Wire to FX broker" ^transfers-offshore-17
Assets:WellsFargo:Checking -40025.00 USD
Expenses:Fees:WireTransfers 25.00 USD
Assets:OANDA:USDollar 40000.00

2014-03-16 * "Conversion to offshore beans" ^transfers-offshore-17
Assets:OANDA:USDollar -40000.00 USD
Assets:OANDA:GBPounds 23391.81 GBP @ 1.71 USD

2014-03-16 * "God save the Queen (and taxes)" ^transfers-offshore-17
Assets:OANDA:GBPounds -23391.81 GBP
Expenses:Fees:WireTransfers 15.00 GBP
Assets:Brittania:PrivateBanking 23376.81 GBP
41 changes: 24 additions & 17 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,18 @@
}
]
},
"Bean": {
"complexitychecks": [],
"extensions": ["bean", "beancount"],
"line_comment": [";"],
"multi_line": [],
"quotes": [
{
"end": "\"",
"start": "\""
}
]
},
"Bicep": {
"complexitychecks": [
"@minLength(",
Expand Down Expand Up @@ -2483,6 +2495,18 @@
"multi_line": [],
"quotes": []
},
"Gleam": {
"complexitychecks": ["fn ", "case ", "-> ", "if "],
"extensions": ["gleam"],
"line_comment": ["//", "///", "////"],
"multi_line": [],
"quotes": [
{
"end": "\"",
"start": "\""
}
]
},
"Go": {
"complexitychecks": [
"go ",
Expand Down Expand Up @@ -3001,23 +3025,6 @@
}
]
},
"Gleam": {
"complexitychecks": [
"fn ",
"case ",
"-> ",
"if "
],
"extensions": ["gleam"],
"line_comment": ["//", "///", "////"],
"multi_line": [],
"quotes": [
{
"end": "\"",
"start": "\""
}
]
},
"JavaScript": {
"complexitychecks": [
"for ",
Expand Down
2 changes: 1 addition & 1 deletion processor/constants.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,7 @@ specificLanguages=(
'Astro '
'AWK '
'BASH '
'Bean '
'Bicep '
'Bitbucket Pipeline '
'Boo '
Expand Down

0 comments on commit 8acd9e7

Please sign in to comment.