koka-lang / madoko

Madoko is a fast markdown processor for high quality academic and technical articles
Other
393 stars 42 forks source link

Import highlight definitions from monaco #53

Open Artoria2e5 opened 5 years ago

Artoria2e5 commented 5 years ago

Microsoft has a monaco highlighting repo at https://github.com/Microsoft/monaco-languages. The ILanguage structure exported by each highlighter appears highly homologous to madoko's syntax definitions. Perhaps someone can write a script to assiminate highlighting rules from Monaco?


Yeah, they are the same thing. ILanguage is monaco.languages.IMonarchLanguage, and we all know what Monarch is. The comments are arranged a bit differently, and the names are in a "contrib" file. Since the whole thing is open sourced under VSCode now, someone can probably come in and turn the Monarch blob into a more proper npm dependency while switching to the new highlighters...