X-Git-Url: http://gitweb.michael.orlitzky.com/?p=nagios-mode.git;a=blobdiff_plain;f=nagios-mode.el;h=097e331e6aef5f628dbb24ddf844c084c3b7dc76;hp=7ee729f50a46c008311939ac84008f410eefaac4;hb=8c2b428ac0a58522c798e51a74838b4f91204ef0;hpb=5ca4310294df8393175b1a8f1f12aec14bb31b8a diff --git a/nagios-mode.el b/nagios-mode.el index 7ee729f..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) ) ) @@ -234,7 +234,7 @@ (read-kbd-macro "}") 'nagios-insert-right-brace-and-indent) ) - + (defconst nagios-directives @@ -810,7 +810,7 @@ (make-local-variable 'syntax-begin-function) (set-syntax-table nagios-mode-syntax-table) - + (setq mode-name "nagios" major-mode 'nagios-mode indent-line-function 'nagios-indent-line @@ -818,7 +818,7 @@ comment-start "#" comment-start-skip "#\|; +" comment-end "" - + ;; Since comments and strings do not span multiple lines, ;; the syntax parser can safely start parsing at the beginning ;; of any line.