tact-lang / tact-vscode

Tact VS Code plugin
Apache License 2.0
22 stars 9 forks source link

feat: update TextMate grammar #39

Closed enpitsuLin closed 5 months ago

enpitsuLin commented 5 months ago

I got some syntax highlight problems with the extension like almost all tokens are Other with no theme selector, which makes the document pretty ugly.

image image

but I found the official doc site has the TextMate grammar file too, so why don't you guys maintain an official TextMeta syntax file somewhere?

after using this file

image image

novusnota commented 5 months ago

As a side effect, this also updates the highlighting to match Tact v1.4.0

anton-trunov commented 5 months ago

It would be nice to merge this version of the grammar developed and maintained by @novusnota, because it's has some test coverage (you can find it here: https://github.com/tact-lang/tact-sublime/tree/main/tests)

logvik commented 5 months ago

@enpitsuLin thank you, but I have noticed that by the link, that you have mentioned, 573 rows, but after merging will be 558 only. Can you please use the same file as @novusnota (the same content places by the link you have mentioned)? After this I will be able to complete this PR.

enpitsuLin commented 5 months ago

hi @logvik, I am sure it totally copies from the file by the link I mentioned but uses the original indentation settings, so maybe it looks a little different but the content is the same