Skip to content

Commit 9564992

Browse files
committed
update copyrights
1 parent 72cd6ca commit 9564992

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

elixir-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
;;; elixir-mode.el --- Major mode for editing Elixir files
22

3-
;; Copyright 2011-2014 secondplanet
4-
;; 2013-2014 Samuel Tonini, Matt DeBoard, Andreas Fuchs
3+
;; Copyright 2011-2015 secondplanet
4+
;; 2013-2015 Samuel Tonini, Matt DeBoard, Andreas Fuchs
55
;; Authors: Humza Yaqoob,
66
;; Andreas Fuchs <[email protected]>,
77
;; Matt DeBoard

elixir-smie.el

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
;;; elixir-smie.el --- Structural syntax support for elixir-mode
22

3-
;; Copyright 2011-2014 secondplanet
4-
;; 2013-2014 Samuel Tonini, Matt DeBoard, Andreas Fuchs
3+
;; Copyright 2011-2015 secondplanet
4+
;; 2013-2015 Samuel Tonini, Matt DeBoard, Andreas Fuchs
55

66
;; This file is not a part of GNU Emacs.
77

@@ -142,7 +142,7 @@
142142

143143
(defvar elixir-smie--operator-regexp
144144
(rx (or "<<<" ">>>" "^^^" "~~~" "&&&" "|||" "===" "!==" "==" "!=" "<="
145-
"=" ">=" "<" ">" "&&" "||" "<>" "++" "--" "//" "/>" "=~" "|>")))
145+
"=" ">=" "<" ">" "&&" "||" "<>" "++" "--" "//" "/>" "=~" "|>")))
146146

147147
(defvar elixir-smie--binary-sequence-regexp
148148
(rx (or "<<" ">>")))
@@ -186,20 +186,20 @@
186186
;; colon when it comes to detecting the end of match statements. This could
187187
;; also be handled by a `while' expression or some other looping mechanism.
188188
(cl-flet ((self-call ()
189-
(if (< (point) (point-max))
190-
(elixir-smie--semi-ends-match)
191-
nil)))
192-
(cond
193-
((and (eolp) (bolp))
194-
(forward-char)
195-
(self-call))
196-
((looking-at elixir-smie--spaces-til-eol-regexp)
197-
(move-beginning-of-line 2)
198-
(self-call))
199-
;; And if we're NOT on a blank line, move to the end of the line, and see
200-
;; if we're looking back at a block operator.
201-
(t (move-end-of-line 1)
202-
(looking-back elixir-smie--block-operator-regexp)))))))
189+
(if (< (point) (point-max))
190+
(elixir-smie--semi-ends-match)
191+
nil)))
192+
(cond
193+
((and (eolp) (bolp))
194+
(forward-char)
195+
(self-call))
196+
((looking-at elixir-smie--spaces-til-eol-regexp)
197+
(move-beginning-of-line 2)
198+
(self-call))
199+
;; And if we're NOT on a blank line, move to the end of the line, and see
200+
;; if we're looking back at a block operator.
201+
(t (move-end-of-line 1)
202+
(looking-back elixir-smie--block-operator-regexp)))))))
203203

204204
(defun elixir-smie--same-line-as-parent (parent-pos child-pos)
205205
"Return non-nil if `child-pos' is on same line as `parent-pos'."
@@ -216,8 +216,8 @@
216216
(looking-at "[\n#]"))
217217
(elixir-smie--implicit-semi-p))
218218
(when (not (save-excursion
219-
(forward-comment 1)
220-
(eobp)))
219+
(forward-comment 1)
220+
(eobp)))
221221
(if (eolp) (forward-char 1) (forward-comment 1)))
222222
;; Note: `elixir-smie--semi-ends-match' will be called when the point is at
223223
;; the beginning of a new line. Keep that in mind.
@@ -318,7 +318,7 @@
318318
(nth 1 smie--parent)
319319
(point)))
320320
(smie-rule-parent elixir-smie-indent-basic)
321-
elixir-smie-indent-basic))
321+
elixir-smie-indent-basic))
322322
;; Otherwise, if just indent by two.
323323
((smie-rule-hanging-p)
324324
(cond

0 commit comments

Comments
 (0)