Comments (11)
May god have mercy upon my soul for these regular expression crimes... 2b51056#diff-89b42d1b3542ae0696e5a3816ce607372c14d198667fd9ad5fef318867385990R29 :-)
from hledger-vscode.
Thanks!
from hledger-vscode.
I didn't dare touch it!
from hledger-vscode.
I'm thankful for a test suite that'll hopefully tell me if I screw it up too bad.
Should be released soon in v0.0.10: https://marketplace.visualstudio.com/items?itemName=mark-hansen.hledger-vscode
from hledger-vscode.
You are aware of the saying: "If you have a problem, and you need Regular Expressions to solve it, then you have two problems."
from hledger-vscode.
from hledger-vscode.
Can you confirm you've updated to 0.0.10? Can you share the entire transaction too, I can add a test for it.
from hledger-vscode.
The transaction is nothing special, really:
2022-01-07=2021-12-01 BBN Tax Adjustment
Expenses:Tax:Withholding:Aus
Assets:Investments:Aus:Cash USD 0.66 USD
I've also checked the regex and the groups seem ok. The tmGrammar docs indicate that having duplicate tokens is fine. I'm sorry I'm of not much help.
from hledger-vscode.
Adding an equals sign after the date immediately removes the coloring. I guess it requires some kind of separator, like space?
from hledger-vscode.
from hledger-vscode.
Understood. I was hoping, too, that the Regex addition was enough.
from hledger-vscode.
Related Issues (14)
- Currency codes get highlighted in the middle of posting descriptions
- Tests failing after vscode-textmate update HOT 4
- Can't run tests: unable to compile typescript
- Timedot support HOT 1
- Unable to install on Arch Linux (needs to be published on Open VSX) HOT 3
- [Feature Request] Parser error reporting HOT 7
- [Feature Request] Journal Prettifier HOT 5
- Currency symbols don't get highlighted if not followed by a number HOT 4
- Syntax highlighting for "revenue" in addition to "income" HOT 1
- Hashtags in transaction descriptions are being highlighted as comments HOT 1
- Generalize account syntax HOT 20
- Consider using vscode-tmgrammar-test for tests
- Can't compile oniguruma dependency HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hledger-vscode.