]> gitweb.michael.orlitzky.com - nagios-mode.git/commitdiff
Update char-is-commented to support semicolon comments.
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 21 Aug 2010 05:04:01 +0000 (01:04 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 21 Aug 2010 05:04:01 +0000 (01:04 -0400)
nagios-mode.el

index 71cc5a008f9480cbdf11a33ce0970e4198008284..097e331e6aef5f628dbb24ddf844c084c3b7dc76 100644 (file)
   "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)
   )
 )