[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/indent-bars b72fa098d7 415/431: ts: improve developer c
From: |
ELPA Syncer |
Subject: |
[elpa] externals/indent-bars b72fa098d7 415/431: ts: improve developer commentary |
Date: |
Mon, 16 Sep 2024 12:59:56 -0400 (EDT) |
branch: externals/indent-bars
commit b72fa098d7c48d61fb4b508071bd77d054268f4e
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>
ts: improve developer commentary
---
indent-bars-ts.el | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/indent-bars-ts.el b/indent-bars-ts.el
index ceb06ed6c3..a059caf299 100644
--- a/indent-bars-ts.el
+++ b/indent-bars-ts.el
@@ -22,18 +22,18 @@
;; scope node types for the language of interest. For any given
;; location of point, there is a scope range (a pair of markers) which
;; helps determine how the bars get displayed. Short nodes occupying
-;; too-few lines are (optionally) not considered. A nil scope node
-;; indicates the entire file is the scope. Note that even small
-;; movements can change the scope and hence bar styling signficantly.
+;; too-few lines are (optionally) not considered for scope. A nil
+;; scope node indicates the entire file is the scope. Note that even
+;; small movements can change the scope and hence the bar styling.
-;; The font-lock aspect does not differ much from normal (non-TS) bar
+;; The styling aspect does not differ much from normal (non-TS) bar
;; drawing, except there is now an alternate set of bar styles (in-
;; vs. out-of-scope), and bars on a single line can be either all one,
;; all the other, or a combination of the two styles. The forms in
;; the configured font-lock keywords (FACE eval forms) consult the
;; current scope range to determine how to style bars on a line.
-;; But since bar fontification now depends not just on the text in the
+;; Since bar fontification now depends not just on the text in the
;; buffer, but on the position of point, this presents a few
;; challenges to maintain efficiency. The adopted technique is as
;; follows:
@@ -41,19 +41,21 @@
;; - A post-command hook sets up an idle-time callback (if none
;; exists).
;; - In idle time, we query treesitter for the innermost "scope" node
-;; at point, based on user config (`indent-bars-treesit-scope').
+;; at point, based on user config for the buffer's language
+;; (`indent-bars-treesit-scope').
;; - If the scope boundaries have changed from the last time they
;; were saved (modulo simple marker movement), we invalidate the
;; fontification over the union of the old and new scope regions.
;; - jit-lock is modified to apply a special
-;; `indent-bars-font-lock-pending' property to modified (or
-;; contextually-refontified) text.
+;; `indent-bars-font-lock-pending' property to modified text. The
+;; same happens for contextually-refontified text.
;; - font-lock and jit-lock are configured to skip the core font-lock
-;; region fontification function when it is not pending in the
-;; region. See `indent-bars--fontify'.
+;; region fontification function when font-lock itself is not
+;; pending in the region. See `indent-bars--fontify'.
;;
-;; Note the shorthand substitutions for style related prefixes (slot
-;; accessors and variables); see file-local-variables at the end:
+;; Note also the shorthand substitutions for style related prefixes
+;; (slot accessors and variables); see file-local-variables at the
+;; end:
;;
;; ibts/ => indent-bars-ts-scope- (slot accessors)
;; ibtcs => indent-bars-ts-current-scope (scope struct)
- [elpa] externals/indent-bars 1a851b6503 345/431: remove ts-teardown hook function on teardown, (continued)
- [elpa] externals/indent-bars 1a851b6503 345/431: remove ts-teardown hook function on teardown, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars c12c740153 346/431: Bump version, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 0af707c007 338/431: Update README.md, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars af02883218 374/431: README improvements, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars f486b9a4c8 350/431: README: cleanup links, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars cbe88d5c7a 379/431: README: fix stray empty item, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 95592c1888 382/431: TS: improve Developer doc, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 74c08d82fd 356/431: Update depth highlight: guard against deleted buffer, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars a1b942dde5 354/431: ts font-lock forms: set/clear as local variables, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 2216793de8 381/431: Merge branch 'main' into dev, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars b72fa098d7 415/431: ts: improve developer commentary,
ELPA Syncer <=
- [elpa] externals/indent-bars 9f507d72fa 394/431: indent-bars--fontify: correct return structure, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 0aab084248 019/431: Capitalize in custom tags, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 37f3102422 022/431: specify width-frac for row-data, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 38265e96eb 018/431: remove current-depth timer, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars c228033146 024/431: current-depth-stipple support, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 54722d10a8 037/431: (re-) highlight current depth stipple on resize, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars e35c54e16d 038/431: blank-lines: improve extend and mark algorithm, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars 404251372e 039/431: set-current-depth-stipple: allow-other-keys (e.g. color), ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars da29b37efd 044/431: Add examples file, ELPA Syncer, 2024/09/16
- [elpa] externals/indent-bars f1b0aedc40 078/431: Remove vestigial no-stipple-current-depth-char, ELPA Syncer, 2024/09/16