This subreddit hosts discussions relating to the Nim programming language which is a new compiled and statically typed programming language. Context:

List of languages that can be used from inside Nim : nim

submited by
Style Pass
2023-03-18 15:00:09

This subreddit hosts discussions relating to the Nim programming language which is a new compiled and statically typed programming language.

Context: I'm working on a tree-sitter grammar for Nim. With tree-sitter you can do many things among which is highlighting of the code.

I've been working on my grammar on and off for a long time now. There is currently a version that does 95% of highlights properly but fails for certain corner cases.

To really fix all the issues I have to refactor the whole thing, since the structure proved to be problematic in the end, so that is gonna take a while.

Take a look at the NimPlus tmLanguage file, there's at least embedded assembly, HTML, XML, CSS, GLSL and Markdown in addition to the ones mentioned.

This is documented on https://nim-lang.org/docs/manual.html#lexical-analysis-generalized-raw-string-literals , and it's not specific to some specific extensions/language names, it's just a part of the language syntax.

Leave a Comment