nim-lang / NimLime

The official Nim programming language plugin for Sublime Text
MIT License
132 stars 34 forks source link

Rework #157

Closed AmjadHD closed 1 year ago

AmjadHD commented 1 year ago

Fix #155 Fix #152 Fix #151 Fix #150 Fix #149 Fix #147 Fix #145 Fix #144 Fix #143 Fix #139 Fix #90 Fix #56 Fix #43

Araq commented 1 year ago

@Varriount Ping.

AmjadHD commented 1 year ago

https://github.com/nim-lang/Nim/blob/devel/doc/mytest.cfg#L4 Is this valid syntax in nim cfg files ?

Varriount commented 1 year ago

One thing that needs to be kept in mind here is that Linguist (GitHub's code highlighter) actually uses NimLime's syntax definitions for code highlighting. Last I checked, Linguist only works with TextMate-compatible grammers, so it doesn't support Sublime Text's additional features.

AmjadHD commented 1 year ago

Yes, I'm aware of that. The sublime-syntax files are for sublime.

AmjadHD commented 1 year ago

@Varriount, review pls.

AmjadHD commented 1 year ago

Is this going to be reviewed any time soon ?

Araq commented 1 year ago

Ping @Varriount

AmjadHD commented 1 year ago

@Varriount, There is a new ST plugin for Nim NimPlus, should I just add the new .sublime-syntax files there ?

Varriount commented 1 year ago

@AmjadHD No, I'll review these changes. Can you give me an overview of what has changed?

AmjadHD commented 1 year ago

@Varriount, The way forward as discussed is to split this repo to two branches one that contains old .tmLanguage files for github and another that contains .sublime-syntax files for Sublime Text (and Sublime Merge), so that the testing of each format is seamless.

Can you give me an overview of what has changed?

It's a rework so many things have changed, you can try it and observe the differences for yourself. Otherwise, off the top of my head:

lildude commented 1 year ago

👋 from github/linguist. This PR has introduced a bug our compiler has just detected whilst I was preparing for the next release:

- [ ] repository `vendor/grammars/NimLime` (from https://github.com/nim-lang/NimLime) (1 errors)
  - Grammar conversion failed. File `Syntaxes/Nim CFG.tmLanguage` failed to parse: 1 error(s) decoding:

* 'Repository[block-comments]' expected a map, got 'slice'
Varriount commented 1 year ago

@lildude It should be fixed now.

lildude commented 1 year ago

Confirmed. Thanks.