I previously used tmLanguage files for syntax highlighting in Sublime and 
now have updated to use a newer syntax definition format. If anyone uses 
Sublime and is interested, more here:

https://github.com/scarpent/ledgerbil/tree/master/syntax

It's geared to my own usage in some ways but of course you could modify it 
as you wish. The newer .sublime-syntax format is much easier to work with 
than the old tmLanguage format. (Also there are tests! The tests work on 
tmLanguage files as well. I don't know if they're a new thing themselves.)

I'd be happy to extend it to include more currency symbols, and given 
examples of other ledger features that I don't use, I can attempt to 
support them. I don't know a lot about this stuff and piggybacked on scope 
names used in the Monokai color scheme.

Here's a sample:



<https://lh3.googleusercontent.com/-1eXwPmg_PUY/W1sDFuPz7VI/AAAAAAAAMAc/6ZAsolsjsj01fl5_LHyY2sCnSn2etIHAgCLcBGAs/s1600/Screen%2BShot%2B2018-07-27%2Bat%2B6.32.48%2BAM.png>

The sample file in the repo has everything I use and one thing I don't 
(pending/cleared symbols on the top line of a transaction).

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to