Mercurial > vim
annotate runtime/syntax/rnoweb.vim @ 11010:c004e17fa36b v8.0.0394
patch 8.0.0394: tabs are not aligned when scrolling horizontally
commit https://github.com/vim/vim/commit/abc39ab642791ae3d22a524516eeedb673a95d9d
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 1 18:04:05 2017 +0100
patch 8.0.0394: tabs are not aligned when scrolling horizontally
Problem: Tabs are not aligned when scrolling horizontally and a Tab doesn't
fit. (Axel Bender)
Solution: Handle a Tab as a not fitting character. (Christian Brabandt)
Also fix that ":redraw" does not scroll horizontally to show the
cursor. And fix the test that depended on the old behavior.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 01 Mar 2017 18:15:04 +0100 |
parents | da01d5da2cfa |
children | 0ecb909e3249 |
rev | line source |
---|---|
836 | 1 " Vim syntax file |
2 " Language: R noweb Files | |
3 " Maintainer: Johannes Ranke <jranke@uni-bremen.de> | |
8497
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
4 " Last Change: Sat Feb 06, 2016 06:47AM |
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
5 " Version: 0.9.1 |
836 | 6 " Remarks: - This file is inspired by the proposal of |
8497
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
7 " Fernando Henrique Ferraz Pereira da Rosa <feferraz@ime.usp.br> |
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
8 " http://www.ime.usp.br/~feferraz/en/sweavevim.html |
836 | 9 " |
10 | |
8497
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
11 if exists("b:current_syntax") |
836 | 12 finish |
13 endif | |
14 | |
15 syn case match | |
16 | |
1122 | 17 " Extension of Tex clusters {{{1 |
836 | 18 runtime syntax/tex.vim |
19 unlet b:current_syntax | |
20 | |
1122 | 21 syn cluster texMatchGroup add=@rnoweb |
2034 | 22 syn cluster texMathMatchGroup add=rnowebSexpr |
8497
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
23 syn cluster texMathZoneGroup add=rnowebSexpr |
1122 | 24 syn cluster texEnvGroup add=@rnoweb |
25 syn cluster texFoldGroup add=@rnoweb | |
8497
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
26 syn cluster texDocGroup add=@rnoweb |
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
27 syn cluster texPartGroup add=@rnoweb |
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
28 syn cluster texChapterGroup add=@rnoweb |
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
29 syn cluster texSectionGroup add=@rnoweb |
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
30 syn cluster texSubSectionGroup add=@rnoweb |
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
31 syn cluster texSubSubSectionGroup add=@rnoweb |
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
32 syn cluster texParaGroup add=@rnoweb |
836 | 33 |
34 " Highlighting of R code using an existing r.vim syntax file if available {{{1 | |
35 syn include @rnowebR syntax/r.vim | |
1122 | 36 syn region rnowebChunk matchgroup=rnowebDelimiter start="^<<.*>>=" matchgroup=rnowebDelimiter end="^@" contains=@rnowebR,rnowebChunkReference,rnowebChunk fold keepend |
836 | 37 syn match rnowebChunkReference "^<<.*>>$" contained |
8497
da01d5da2cfa
commit https://github.com/vim/vim/commit/77cdfd10382e01cc51f4ba1a9177032351843151
Christian Brabandt <cb@256bit.org>
parents:
2034
diff
changeset
|
38 syn region rnowebSexpr matchgroup=Delimiter start="\\Sexpr{" matchgroup=Delimiter end="}" contains=@rnowebR contained |
836 | 39 |
40 " Sweave options command {{{1 | |
41 syn region rnowebSweaveopts matchgroup=Delimiter start="\\SweaveOpts{" matchgroup=Delimiter end="}" | |
42 | |
43 " rnoweb Cluster {{{1 | |
44 syn cluster rnoweb contains=rnowebChunk,rnowebChunkReference,rnowebDelimiter,rnowebSexpr,rnowebSweaveopts | |
45 | |
46 " Highlighting {{{1 | |
47 hi def link rnowebDelimiter Delimiter | |
48 hi def link rnowebSweaveOpts Statement | |
843 | 49 hi def link rnowebChunkReference Delimiter |
836 | 50 |
51 let b:current_syntax = "rnoweb" | |
52 " vim: foldmethod=marker: |