1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-16 06:47:52 +01:00
vim/runtime/syntax/rnoweb.vim

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.9 KiB
VimL
Raw Permalink Normal View History

2006-04-18 21:55:01 +00:00
" Vim syntax file
" Language: R noweb Files
" Maintainer: Johannes Ranke <jranke@uni-bremen.de>
2018-08-28 22:58:02 +02:00
" Last Change: Thu Apr 05, 2018 11:06PM
2016-03-12 12:57:59 +01:00
" Version: 0.9.1
2006-04-18 21:55:01 +00:00
" Remarks: - This file is inspired by the proposal of
2016-03-12 12:57:59 +01:00
" Fernando Henrique Ferraz Pereira da Rosa <feferraz@ime.usp.br>
" http://www.ime.usp.br/~feferraz/en/sweavevim.html
2006-04-18 21:55:01 +00:00
"
2016-03-12 12:57:59 +01:00
if exists("b:current_syntax")
2006-04-18 21:55:01 +00:00
finish
endif
syn case match
2007-05-05 17:56:55 +00:00
" Extension of Tex clusters {{{1
2006-04-18 21:55:01 +00:00
runtime syntax/tex.vim
2018-08-28 22:58:02 +02:00
unlet! b:current_syntax
2006-04-18 21:55:01 +00:00
2007-05-05 17:56:55 +00:00
syn cluster texMatchGroup add=@rnoweb
2010-01-06 20:54:52 +01:00
syn cluster texMathMatchGroup add=rnowebSexpr
2016-03-12 12:57:59 +01:00
syn cluster texMathZoneGroup add=rnowebSexpr
2007-05-05 17:56:55 +00:00
syn cluster texEnvGroup add=@rnoweb
syn cluster texFoldGroup add=@rnoweb
2016-03-12 12:57:59 +01:00
syn cluster texDocGroup add=@rnoweb
syn cluster texPartGroup add=@rnoweb
syn cluster texChapterGroup add=@rnoweb
syn cluster texSectionGroup add=@rnoweb
syn cluster texSubSectionGroup add=@rnoweb
syn cluster texSubSubSectionGroup add=@rnoweb
syn cluster texParaGroup add=@rnoweb
2006-04-18 21:55:01 +00:00
" Highlighting of R code using an existing r.vim syntax file if available {{{1
syn include @rnowebR syntax/r.vim
2021-04-21 18:09:37 +02:00
syn region rnowebChunk matchgroup=rnowebDelimiter start="^\s*<<.*>>=" matchgroup=rnowebDelimiter end="^@" contains=@rnowebR,rnowebChunkReference,rnowebChunk fold keepend
syn match rnowebChunkReference "^\s*<<.*>>$" contained
2016-03-12 12:57:59 +01:00
syn region rnowebSexpr matchgroup=Delimiter start="\\Sexpr{" matchgroup=Delimiter end="}" contains=@rnowebR contained
2006-04-18 21:55:01 +00:00
" Sweave options command {{{1
syn region rnowebSweaveopts matchgroup=Delimiter start="\\SweaveOpts{" matchgroup=Delimiter end="}"
" rnoweb Cluster {{{1
syn cluster rnoweb contains=rnowebChunk,rnowebChunkReference,rnowebDelimiter,rnowebSexpr,rnowebSweaveopts
" Highlighting {{{1
hi def link rnowebDelimiter Delimiter
hi def link rnowebSweaveOpts Statement
2006-04-25 22:13:59 +00:00
hi def link rnowebChunkReference Delimiter
2006-04-18 21:55:01 +00:00
let b:current_syntax = "rnoweb"
" vim: foldmethod=marker: