emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/phps-mode 314dba1 135/405: Improved articulation of wha


From: Stefan Monnier
Subject: [elpa] externals/phps-mode 314dba1 135/405: Improved articulation of what information get-current-line-data should return
Date: Sat, 13 Jul 2019 09:59:59 -0400 (EDT)

branch: externals/phps-mode
commit 314dba182e0fe07ea7865467f6808573b0ebb82e
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>

    Improved articulation of what information get-current-line-data should 
return
---
 phps-mode-functions.el | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/phps-mode-functions.el b/phps-mode-functions.el
index 76fe89f..12de21a 100644
--- a/phps-mode-functions.el
+++ b/phps-mode-functions.el
@@ -206,7 +206,21 @@
 ;; TODO Keep track of assignments as well
 
 (defun phps-mode-functions-get-current-line-data ()
-  "Return information about current line in tokens."
+  "Return information about current line in tokens.
+
+1. Iterate from beginning of buffer up till start of current line.
+2a.  If current line has no tokens, return nil
+2b.  If current line has tokens, return information about:
+* Sum of different kinds of open brackets: curly, round and square.
+* The sum of open alternative control structures
+* The sum of open inline control structures
+* The sum of open assignments
+* The current lines tokens
+* Whether current line is inside scripting or not
+* Whether current line is inside a doc comment block or not
+* Whether current line is inside a HEREDOC block or not
+* Whether current line is inside a NOWDOC block or not."
+
   ;; (message "Point: %s in %s" (point) phps-mode-lexer-tokens)
   (when (boundp 'phps-mode-lexer-tokens)
     (save-excursion



reply via email to

[Prev in Thread] Current Thread [Next in Thread]