Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nim configuration is broken #2669

Closed
HJarausch opened this issue Nov 20, 2020 · 4 comments · Fixed by #2988
Closed

Nim configuration is broken #2669

HJarausch opened this issue Nov 20, 2020 · 4 comments · Fixed by #2988
Labels

Comments

@HJarausch
Copy link

When open a .nim file or creating an project with a .nim file
The Build pull down menu doesn't offer the 'Compile' button.

@elextr
Copy link
Member

elextr commented Nov 20, 2020

The entries in [build-menu] are for [build-settings] so they are not recognised.

@HJarausch
Copy link
Author

So, what can I do?
Why is there a filetypes.python but no filetypes.nim. And why is there a filetypes.Nim.conf
Is there any documentation about these files?

@b4n
Copy link
Member

b4n commented Nov 20, 2020

So, what can I do?

Easiest is to replace [build-menu] with [build-settings] in filetypes.Nim.conf.
But basically yes, the Nim filetype we distribute is kind of broken in that regard.

Why is there a filetypes.python but no filetypes.nim. And why is there a filetypes.Nim.conf

https://www.geany.org/manual/current/index.html#custom-filetypes

Is there any documentation about these files?

https://www.geany.org/manual/current/index.html#filetype-definition-files

@b4n b4n added the filetype label Nov 20, 2020
@HJarausch
Copy link
Author

filetypes.Nim.conf.txt
Many thanks, I have attached my current version of filetypes.Nim.conf which works just fine.
Please review and replace the current version by this one,
thanks,
Helmut

ZoomRmc added a commit to ZoomRmc/geany that referenced this issue Nov 8, 2021
Keywords taken from official manual: https://nim-lang.org/docs/manual.html#lexical-analysis-identifiers-amp-keywords
Identifiers list expanded with:
1. Some basic types from the [System module](https://nim-lang.org/docs/system.html) which is always implicitly imported.
2. Additional keywords (`lent, spawn, parallel`) from Nim [experimental features](https://nim-lang.org/docs/manual_experimental.html#view-types).

Styling and build-menu settings taken from @HJarausch config in geany#2669
ZoomRmc added a commit to ZoomRmc/geany that referenced this issue Nov 8, 2021
Keywords taken from official Manual.
Identifiers list expanded with:
1. Some basic types from the System module, which is always implicitly imported.
2. Additional keywords (`lent, spawn, parallel`) from Nim experimental features.

Styling and build-menu settings taken from @HJarausch config in geany#2669
elextr pushed a commit that referenced this issue Dec 10, 2021
* Update Nim filetype config

Keywords taken from official Manual.
Identifiers list expanded with:
1. Some basic types from the System module, which is always implicitly imported.
2. Additional keywords (`lent, spawn, parallel`) from Nim experimental features.

Styling and build-menu settings taken from @HJarausch config in #2669

* Fixup: Nim filetype: add `sink`

* Add multiline comments to Nim filetype

...which won't work until the Nim lexer from lexilla is added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants