]> git.pld-linux.org Git - packages/vim-syntax-spec.git/commitdiff
- limit description width to 70 columns (mark any exceeding chars as Error)
authorsparky <sparky@pld-linux.org>
Sun, 7 Feb 2010 17:30:51 +0000 (17:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    spec.vim -> 1.100

spec.vim

index ad80637ed117c402e4a1eb98ebe979a97043b48d..d89124b3e774203e6df37bf869557e198fd1ede4 100644 (file)
--- a/spec.vim
+++ b/spec.vim
@@ -168,6 +168,8 @@ syn match specFilesOpts       contained    '\s-f\s*\w'ms=s+1,me=e-1
 syn match specDescriptionCharset         contained '-l\s[a-z_A-Z]\+\(\.UTF-8\)\?'ms=s+2
 syn match specPreAmbleCharset         contained '([a-z_A-Z]\+\(\.UTF-8\)\?):'
 
+" limit description width to 70 columns
+syn match specDescriptionLimit '\%>70v.\+'
 
 " %% PreAmble Section %%
 " Copyright and Serial were deprecated by License and Epoch
@@ -185,7 +187,7 @@ syn region specPreAmble oneline matchgroup=specPreambleField
 
 " %% Description Section %%
 syn region specDescriptionArea matchgroup=specSection start='^%description' end='^%'me=e-1
-       \ contains=specDescriptionOpts,specEmail,specURL,specNumber,specMacroIdentifier,specComment
+       \ contains=specDescriptionOpts,specEmail,specURL,specNumber,specMacroIdentifier,specComment,specDescriptionLimit
 
 " %% Package Section %%
 syn region specPackageArea matchgroup=specSection start='^%package' end='^%'me=e-1
@@ -296,6 +298,7 @@ if version >= 508 || !exists("did_spec_syntax_inits")
   HiLink specDate                      String
   HiLink specPreAmbleCharset           String
   HiLink specDescriptionCharset                String
+  HiLink specDescriptionLimit          Error
   HiLink specDescriptionOpts           specOpts
   HiLink specEmail                     specWWWlink
   HiLink specError                     Error
This page took 0.03443 seconds and 4 git commands to generate.