Skip to content

Commit

Permalink
Add bos/eos to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
smoeding committed Dec 11, 2024
1 parent 80c8d7c commit c8e9beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions puppet-ts-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
;; Maintainer: Stefan Möding <[email protected]>
;; Version: 0.1.0
;; Created: <2024-03-02 13:05:03 stm>
;; Updated: <2024-12-11 21:12:16 stm>
;; Updated: <2024-12-11 21:12:38 stm>
;; URL: https://github.com/smoeding/puppet-ts-mode
;; Keywords: languages
;; Package-Requires: ((emacs "29.1"))
Expand Down Expand Up @@ -682,7 +682,7 @@ Return the node if it is found or nil otherwise."
(align beg end))))))

(defconst puppet-ts-inhibit-electric-alignment
(rx (or "comment" "single_quoted_string" "double_quoted_string"))
(rx bos (or "comment" "single_quoted_string" "double_quoted_string") eos)
"Node types where electric alignment should not be performed.")

(defun puppet-ts-electric-greater (arg)
Expand Down

0 comments on commit c8e9beb

Please sign in to comment.