Index: /issm/trunk/externalpackages/vim/vim.AddOns/issm.vim/plugin/issmfolds.vim
===================================================================
--- /issm/trunk/externalpackages/vim/vim.AddOns/issm.vim/plugin/issmfolds.vim	(revision 4922)
+++ /issm/trunk/externalpackages/vim/vim.AddOns/issm.vim/plugin/issmfolds.vim	(revision 4923)
@@ -29,5 +29,6 @@
 	" }}}
 	" remove any remaining leading or trailing whitespace {{{
-	let line = substitute(line, '^\s*\(.\{-}\)\s*$', '\1', '')
+	"let line = substitute(line, '^\s*\(.\{-}\)\s*$', '\1', '')
+	let line = substitute(line, '^\s*%\(.\{-}\)\s*$', '\1', '') "Also remove % in matlab comments
 	" }}}
 	" align everything, and pad the end of the display with - {{{
Index: /issm/trunk/externalpackages/vim/vim.AddOns/issm.vim/syntax/c.vim
===================================================================
--- /issm/trunk/externalpackages/vim/vim.AddOns/issm.vim/syntax/c.vim	(revision 4922)
+++ /issm/trunk/externalpackages/vim/vim.AddOns/issm.vim/syntax/c.vim	(revision 4923)
@@ -406,9 +406,9 @@
 syn keyword	cType		Constraints DataSet Elements Inputs Loads Materials Parameters Results Vertices
 "ISSM objects
-syn keyword	cType		Beam BeamVertexElementResult BeamVertexInput BoolExternalResult BoolInput BoolParam DofIndexing
+syn keyword	cType		Beam BeamRef BeamVertexElementResult BeamVertexInput BoolExternalResult BoolInput BoolParam DofIndexing
 syn keyword	cType		DoubleElementResult DoubleExternalResult DoubleInput DoubleMatExternalResult DoubleMatParam DoubleParam DoubleVecExternalResult DoubleVecParam
 syn keyword	cType		Element ElementResult ExternalResult FemModel Friction Hook Icefront Input
 syn keyword	cType		IntExternalResult IntInput IntParal Iomodel Load Material Matice Matpar Node NodeSets Numericalflux Object
-syn keyword	cType		Param Patch Pengrid Penpair Penta PentaHook PentaVertexElementResult PentaVertexInput PetscMatParam PetscVecExternalResult PetscVecParam
+syn keyword	cType		Param Patch Pengrid Penpair Penta PentaHook PentaRef PentaVertexElementResult PentaVertexInput PetscMatParam PetscVecExternalResult PetscVecParam
 syn keyword	cType		Rgb Riftfront Sing SingVertexElementResult SingVertexInput Spc StringArrayParam StringExternalResult StringParam
 syn keyword	cType		Tria TriaHook TriaRef TriaVertexElementResult TriaVertexInput Update Vertex
