I am developing my own Domain Specific Language (DSL) and the filename extension is .xyz
.
Emacs doesn't know how to highlight syntax in .xyz
files so I uausally turn on typescript-mode
or json-mode
. But the available syntax highlight mode is not good enough for me, so I am considering writing my own syntax highligher for Emacs editor. Any tips on this task? Any toolkit recommendation?
Alternatively, I would be happy with any available mode that highlights common keywords such as class
, string
, list
, variables before =
sign and after @
sign, braces {}
, brackets []
, question mark ?
and exclamation mark !
. Any existing languages have similar syntax?
I am not color-blind and not picky on colors. Any syntax highligher that highlights above syntax can solve my problem.