Mercurial > vim
view runtime/syntax/sgmllnx.vim @ 34016:34f6f3678cae
runtime(r): Update R runtime files and docs (#13757)
Commit: https://github.com/vim/vim/commit/9042bd8b09bae0051fdf8eb5a57fa4b4420c92a0
Author: Jakson Alves de Aquino <jalvesaq@gmail.com>
Date: Mon Dec 25 09:22:27 2023 +0000
runtime(r): Update R runtime files and docs (https://github.com/vim/vim/issues/13757)
* Update R runtime files
- Fix indentation issue with ggplot().
- Setlocal autoindent in indent/r.vim.
- New syntax option: rmd_include_latex.
- Clear syn iskeyword to recognize _ as keyword.
- Document some options.
- remove the test has("patch-7.4.1142")
- Update changed date of doc files
Signed-off-by: Jakson Alves de Aquino <jalvesaq@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 25 Dec 2023 10:30:07 +0100 |
parents | 46763b01cd9a |
children |
line wrap: on
line source
" Vim syntax file " Language: SGML-linuxdoc (supported by old sgmltools-1.x) " Maintainer: SungHyun Nam <goweol@gmail.com> " Last Change: 2013 May 13 " quit when a syntax file was already loaded if exists("b:current_syntax") finish endif syn case ignore " tags syn region sgmllnxEndTag start=+</+ end=+>+ contains=sgmllnxTagN,sgmllnxTagError syn region sgmllnxTag start=+<[^/]+ end=+>+ contains=sgmllnxTagN,sgmllnxTagError syn match sgmllnxTagN contained +<\s*[-a-zA-Z0-9]\++ms=s+1 contains=sgmllnxTagName syn match sgmllnxTagN contained +</\s*[-a-zA-Z0-9]\++ms=s+2 contains=sgmllnxTagName syn region sgmllnxTag2 start=+<\s*[a-zA-Z]\+/+ keepend end=+/+ contains=sgmllnxTagN2 syn match sgmllnxTagN2 contained +/.*/+ms=s+1,me=e-1 syn region sgmllnxSpecial oneline start="&" end=";" " tag names syn keyword sgmllnxTagName contained article author date toc title sect verb syn keyword sgmllnxTagName contained abstract tscreen p itemize item enum syn keyword sgmllnxTagName contained descrip quote htmlurl code ref syn keyword sgmllnxTagName contained tt tag bf it url syn match sgmllnxTagName contained "sect\d\+" " Comments syn region sgmllnxComment start=+<!--+ end=+-->+ syn region sgmllnxDocType start=+<!doctype+ end=+>+ " Define the default highlighting. " Only when an item doesn't have highlighting yet hi def link sgmllnxTag2 Function hi def link sgmllnxTagN2 Function hi def link sgmllnxTag Special hi def link sgmllnxEndTag Special hi def link sgmllnxParen Special hi def link sgmllnxEntity Type hi def link sgmllnxDocEnt Type hi def link sgmllnxTagName Statement hi def link sgmllnxComment Comment hi def link sgmllnxSpecial Special hi def link sgmllnxDocType PreProc hi def link sgmllnxTagError Error let b:current_syntax = "sgmllnx" " vim:set tw=78 ts=8 sts=2 sw=2 noet: