From: Michael Orlitzky Date: Sat, 21 Aug 2010 05:04:01 +0000 (-0400) Subject: Update char-is-commented to support semicolon comments. X-Git-Tag: v0.3~1 X-Git-Url: http://gitweb.michael.orlitzky.com/?p=nagios-mode.git;a=commitdiff_plain;h=7e7874bc9371861fc73eab79c8498a31e2cf3575 Update char-is-commented to support semicolon comments. --- diff --git a/nagios-mode.el b/nagios-mode.el index 71cc5a0..097e331 100644 --- a/nagios-mode.el +++ b/nagios-mode.el @@ -119,7 +119,7 @@ "True if the character at position pos is commented, nil otherwise." (save-excursion (goto-char pos) - (re-search-backward "#" (nagios-beginning-of-line-pos) t) + (re-search-backward "\\(#\\|;\\)" (nagios-beginning-of-line-pos) t) ) )