From aafe01e4e9860ccc8387d933e84286eda0f90c3a Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Mon, 10 Mar 2008 21:10:22 +1300 Subject: [PATCH] added support for patran and dakota --- doc/NERD_commenter.txt | 4 ++++ plugin/NERD_commenter.vim | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 1680d60..6f2550e 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -860,6 +860,9 @@ to get illegal syntax when uncommenting them. ============================================================================== 8. Changelog *NERDComChangelog* +2.something + - added support for patran and dakota, thx to Jacobo Diaz for the email + 2.1.11 - fixed a bug with the selection option and visual commenting (again). Thanks to Ingo Karkat (again). @@ -1211,3 +1214,4 @@ Vladimir Lomov asymptote Marco mrxvtrc, aap nicothakis SVNAnnotate, CVSAnnotate, SVKAnnotate Chen Xing Wikipedia +Jacobo Diaz dakota, patran diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 2f958d6..2078e1e 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -256,6 +256,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimitersWithAlternative('//','', '/*','*/') elseif a:filetype == "dcl" call s:MapDelimiters('$!', '') + elseif a:filetype == "dakota" + call s:MapDelimiters('#', '') elseif a:filetype == "debchangelog" call s:MapDelimiters('', '') elseif a:filetype == "debcontrol" @@ -542,6 +544,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimitersWithAlternative('{','}', '(*', '*)') elseif a:filetype == "passwd" call s:MapDelimiters('','') + elseif a:filetype == "patran" + call s:MapDelimitersWithAlternative('$','','/*', '*/') elseif a:filetype == "pcap" call s:MapDelimiters('#', '') elseif a:filetype == "pccts"