aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorJuri Linkov2025-05-01 21:23:33 +0300
committerJuri Linkov2025-05-01 21:23:33 +0300
commit1b0fe9b387ee4021b86f6fb120f5f7ed05367a9d (patch)
tree7be30bc2edbc0191f7ab891c33cba69b617ef2a0 /src/coding.c
parentcd557d6f6480cae81c39a451b2a2aaee720ba985 (diff)
downloademacs-1b0fe9b387ee4021b86f6fb120f5f7ed05367a9d.tar.gz
emacs-1b0fe9b387ee4021b86f6fb120f5f7ed05367a9d.zip
Embed html, yaml and toml in markdown-ts-mode.
* lisp/textmodes/markdown-ts-mode.el (markdown-ts--treesit-settings): Use @italic on the whole 'block_quote'. (markdown-ts-outline-predicate): New function. (markdown-ts--range-settings): Embed 'yaml' in host 'markdown', embed 'toml' in host 'markdown', embed 'html' in host 'markdown-inline', and use local 'html_block'. (markdown-ts-setup): Append html/yaml/toml to treesit-font-lock-settings and treesit-font-lock-feature-list when their grammars are ready. (markdown-ts-mode): Set comment-start/comment-end. Set treesit-outline-predicate to 'markdown-ts-outline-predicate'. * lisp/textmodes/toml-ts-mode.el (toml-ts-mode--font-lock-feature-list): New variable. (toml-ts-mode): Use it. * lisp/textmodes/yaml-ts-mode.el (yaml-ts-mode--font-lock-feature-list): New variable. (yaml-ts-mode): Use it. (yaml-ts-mode--outline-nodes): New variable. (yaml-ts-mode--outline-predicate): Use it. * lisp/treesit-x.el (liquid-generic-ts-mode): Use 'treesit-ready-p' on optional 'yaml' grammar. Merge 'yaml-ts-mode--font-lock-feature-list'.
Diffstat (limited to 'src/coding.c')
0 files changed, 0 insertions, 0 deletions