[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
- [elpa] externals/phps-mode e206605 115/405: Adding failing unit tests for inline and alternative syntax, (continued)
- [elpa] externals/phps-mode e206605 115/405: Adding failing unit tests for inline and alternative syntax, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode c6aa633 118/405: More work on keeping track of alternative control structures, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 60c7431 122/405: Unit tests for gather data about inline and alternative control structure syntax passes, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 897f249 124/405: Work on alternative and inline indentation, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode be35ed6 127/405: Added sample files for inline and alternative control structures, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 7279913 113/405: Improved TODOs, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode a8eadfa 130/405: Improved sample files inline and alternative control structures, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 9996ae0 146/405: More work on indentation calculation, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 3776841 138/405: Added new support for tracking doc-comment, HEREDOC and NOWDOC indentation, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 780d065 125/405: Code styling updates, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 314dba1 135/405: Improved articulation of what information get-current-line-data should return,
Stefan Monnier <=
- [elpa] externals/phps-mode f0523b7 137/405: More work on new function to calculate indentation, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 16d8056 144/405: Foundation for new indentation tests completed, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode d380cd4 129/405: Updated readme, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 3f08b86 128/405: Updated tracking of alternative control structures, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 52c502c 139/405: Improved logic for doc-comment tracking, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 1472273 136/405: Begun working on new approach to indentation calculation, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode 9792f70 133/405: Cleaning up code gather point meta information, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode cc947a9 140/405: Added more tests for new indentation function, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode d3e00f2 141/405: Starting on new function for indentation, Stefan Monnier, 2019/07/13
- [elpa] externals/phps-mode c68c7a0 131/405: Fixed issue were first-token-on-line was nil, Stefan Monnier, 2019/07/13