|
From: | Jostein Kjønigsen |
Subject: | toml-ts-mode: first draft |
Date: | Sun, 11 Dec 2022 14:28:12 +0100 |
Hey everyone.
I noticed that there’s no built in support for the TOML file format in Emacs and that currently one has to use a third-party MELPA-package to add support for that. Attached is a patch which adds support for TOML using tree-sitter fontification. It has been tested with, and provides consistent fontification for the following syntax elements: - bare headers & quoted headers - single headers & dotted headers - regular headers and array-element headers - bare properties & dotted properties - double-quoted strings and single-quoted strings - single-line and multi-line strings - escape-sequences in strings - numeric values (all formats) - date and time values (all formats) - boolean values - inline tables, with recursive support for all the above value types - highlighting syntax errors It does not yet implement support for indentation as that is not commonly used/legal for this format. Feedback welcome! --
Vennlig hilsen Jostein Kjønigsen jostein@kjonigsen.net 🍵 jostein@gmail.com https://jostein.kjønigsen.no |
0003-Introduce-support-for-TOML-config-format.patch
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |