diff --git a/optlib/puppetManifest.c b/optlib/puppetManifest.c index e04e04cf78..2a39fc8611 100644 --- a/optlib/puppetManifest.c +++ b/optlib/puppetManifest.c @@ -462,32 +462,32 @@ static void initializePuppetManifestParser (const langType language CTAGS_ATTR_U "^", "", "", "{tquit}", NULL); addLanguageTagMultiTableRegex (language, "resourceBody", - "^/\\*", - "", "", "{tenter=comment_multiline}", NULL); - addLanguageTagMultiTableRegex (language, "resourceBody", - "^\\#", - "", "", "{tenter=comment_oneline}", NULL); - addLanguageTagMultiTableRegex (language, "resourceBody", - "^[ \t\n]", + "^([^/#{'\";}<])", "", "", "", NULL); - addLanguageTagMultiTableRegex (language, "resourceBody", - "^\\{", - "", "", "{tenter=skipBlock}", NULL); addLanguageTagMultiTableRegex (language, "resourceBody", "^'", "", "", "{tenter=ssliteral}", NULL); addLanguageTagMultiTableRegex (language, "resourceBody", "^\"", "", "", "{tenter=dsliteral}", NULL); - addLanguageTagMultiTableRegex (language, "resourceBody", - "^;", - "", "", "{tleave}{scope=pop}", NULL); addLanguageTagMultiTableRegex (language, "resourceBody", "^\\}", "", "", "{tleave}{_advanceTo=0start}{scope=pop}", NULL); + addLanguageTagMultiTableRegex (language, "resourceBody", + "^\\{", + "", "", "{tenter=skipBlock}", NULL); + addLanguageTagMultiTableRegex (language, "resourceBody", + "^;", + "", "", "{tleave}{scope=pop}", NULL); addLanguageTagMultiTableRegex (language, "resourceBody", "^<