Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Explicitly name contained groups instead using ALL.
Browse files Browse the repository at this point in the history
The latter is dangerous when another syntax (e.g. via compound filetypes) is added; suddenly all contained groups match in the entire region!
  • Loading branch information
inkarkat committed Oct 22, 2013
1 parent 8d1091a commit 715e52b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/svn.vim
Expand Up @@ -20,7 +20,7 @@ elseif exists("b:current_syntax")
finish
endif

syn region svnRegion start="^--.*--$" end="\%$" contains=ALL,@NoSpell
syn region svnRegion start="^--.*--$" end="\%$" contains=svnRemoved,svnRenamed,svnAdded,svnModified,svnProperty,@NoSpell
syn match svnRemoved "^D .*$" contained contains=@NoSpell
syn match svnRenamed "^R[ M][ U][ +] .*$" contained contains=@NoSpell
syn match svnAdded "^A[ M][ U][ +] .*$" contained contains=@NoSpell
Expand Down

0 comments on commit 715e52b

Please sign in to comment.