Giter Club home page Giter Club logo

Comments (11)

mhansen avatar mhansen commented on July 21, 2024 1

May god have mercy upon my soul for these regular expression crimes... 2b51056#diff-89b42d1b3542ae0696e5a3816ce607372c14d198667fd9ad5fef318867385990R29 :-)

from hledger-vscode.

alensiljak avatar alensiljak commented on July 21, 2024

Thanks!

from hledger-vscode.

alensiljak avatar alensiljak commented on July 21, 2024

I didn't dare touch it!

from hledger-vscode.

mhansen avatar mhansen commented on July 21, 2024

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.

alensiljak avatar alensiljak commented on July 21, 2024

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.

alensiljak avatar alensiljak commented on July 21, 2024

Still white?
image

from hledger-vscode.

mhansen avatar mhansen commented on July 21, 2024

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.

alensiljak avatar alensiljak commented on July 21, 2024

Sure.
image

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.

alensiljak avatar alensiljak commented on July 21, 2024

Adding an equals sign after the date immediately removes the coloring. I guess it requires some kind of separator, like space?

from hledger-vscode.

mhansen avatar mhansen commented on July 21, 2024

from hledger-vscode.

alensiljak avatar alensiljak commented on July 21, 2024

Understood. I was hoping, too, that the Regex addition was enough.

from hledger-vscode.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.