branch: externals/phps-mode
commit b629c4b916653f490c383db9c13443ec38c45bf8
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>
Updated comments and TODOs
---
phps-functions.el | 3 ++-
phps-lexer.el | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/phps-functions.el b/phps-functions.el
index 8b1538d..2ca33aa 100644
--- a/phps-functions.el
+++ b/phps-functions.el
@@ -10,7 +10,7 @@
;; Package-Requires: ((emacs "24"))
-;; Copyright (C) 2017 Christian Johansson
+;; Copyright (C) 2018 Christian Johansson
;; This file is not part of GNU Emacs.
@@ -113,6 +113,7 @@
(defun phps-mode/functions-init ()
"PHP specific init-cleanup routines."
+ ;; indent-region will call this on each line of region
(set (make-local-variable 'indent-line-function) #'phps-mode/indent-line)
(when (and (boundp 'phps-mode/use-psr-2)
diff --git a/phps-lexer.el b/phps-lexer.el
index 04b0edd..78919e3 100644
--- a/phps-lexer.el
+++ b/phps-lexer.el
@@ -1325,6 +1325,7 @@ ANY_CHAR'
;; (message "data: %s" data)
data))))
+;; TODO Need to store lexer state and stack at each changing point of buffer
to be able to rewind lexer
(defun phps-mode/lex--SETUP (start end)
"Just prepare other lexers for lexing region START to END."
(when (and (eq start 1)