I will mention just created lexers in this topic

All questions regarding lexer highlighting schemes are discussed here...
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

I will mention just created lexers in this topic

Post by main Alexey »

Some days ago I made lexer Just.
Site: https://github.com/casey/just

Today: lexer Futhark.
Site: https://futhark-lang.org/
I noted that Futhark lexer exists for VSCode and Sublime [version for Sublime is not published in PackageControl].
In VSCode it has about 800 downloads.
Language is cool.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Looked at the Ante language.
http://antelang.org/
site is good, github has 1600 likes. but - too less commits (less than 300) in github; and Sublime Text don't have syntax file for it. VSCode has syntax file, with about 50 downloads. not popular.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Added lexer VRML (virtual reality modeling language).
Lists of keywords/types/nodes were taken from Kate editor lexer.
https://en.wikipedia.org/wiki/VRML
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Added lexer WGSL (WebGPU shader language).
Keywords and operators lists were taken from SublimeText lexer (i found only 1 missing keyword).
https://www.w3.org/TR/WGSL/
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Added lexer Janet.
Language has good site, language has 2K stars on Github, has some pull-requests.
https://github.com/janet-lang/janet
I copied lists of standard IDs and operators from Sublime Text syntax file. Also copied rules for numbers (decimal, hex, custom base numbers).
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Added lexer ANSYS APDL.
Partly ported from original VSCode lexer, one of these
https://marketplace.visualstudio.com/se ... =Relevance
but word-lists were very complex. So word-lists were not all ported. If somebody needs all word-lists, I need help here to get these lists from VSCode lexer(s), in simple form - one word per one line.
In VSCode word-lists have the form of RegEx, and in Cud we need form of EOL-separated list.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Added lexer MDX (Markdown with JSX).
It is cloned Markdown lexer, which requires 'JavaScript Babel' as sub-lexer.

Lexer has a bug - sub-lexer rule for {...} JSX blocks, works wrong, it does not consider nested {} brackets, so it closes the JSX block by the _first_ occurrence of '}'. It must close JSX blocks properly counting nested {}, but lexer engine cannot do it, yet.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

I found new syntax file for Sublime: KDL language.
https://kdl.dev/
I looked at the site, at the GitHub, and see it's not hard to add syntax. But none did request this syntax yet. So postponed. lexer not needed yet. If it will be needed, maybe I will request something in exchange (not money).

The similar thing - is about Typst syntax. Good new language.
GitHub is active, many stars.
https://github.com/typst/typst
But none did request it.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Lexer 'Pixilang' was created now.
Language: https://warmplace.ru/soft/pixilang
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: I will mention just created lexers in this topic

Post by main Alexey »

Lexer 'Mojo' was published.
It supports file extension '.mojo' but to support file extension ".🔥" one has to add the config line:
https://wiki.freepascal.org/CudaText#File_types
Because old lexer format don't support unicode chars for filetypes.

Lexer is 98% copied/pasted from Python lexer.
Post Reply