Skip to content

Commit

Permalink
gitconfig-mode-font-lock-keywords: more permissive heading matching
Browse files Browse the repository at this point in the history
Now it is possible to add a comment at the end of a section heading.

Fixes #137.
  • Loading branch information
tarsius committed Jun 27, 2017
1 parent 0be857e commit 9f18eca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitconfig-mode.el
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
;;; gitconfig-mode.el --- Major mode for editing .gitconfig files -*- lexical-binding: t; -*-

;; Copyright (c) 2012-2013 Sebastian Wiesner
;; Copyright (C) 2012-2016 The Magit Project Contributors
;; Copyright (C) 2012-2017 The Magit Project Contributors

;; Author: Sebastian Wiesner <lunaryorn@gmail.com>
;; Maintainer: Jonas Bernoulli <jonas@bernoul.li>
Expand Down Expand Up @@ -94,7 +94,7 @@
(group (syntax string-quote)
(minimal-match (one-or-more not-newline))
(syntax string-quote)))
"]" (zero-or-more (syntax whitespace)) line-end)
"]" (zero-or-more not-newline) line-end)
(1 'font-lock-type-face t nil)
(2 'font-lock-function-name-face t t))
(,(rx line-start (zero-or-more (syntax whitespace)) symbol-start
Expand Down

0 comments on commit 9f18eca

Please sign in to comment.