branch: externals/indent-bars
commit db8a3d2d3f1118e3bdc9315d3f41c5db47ecd032
Author: JD Smith <[email protected]>
Commit: JD Smith <[email protected]>

    Support modes derived from typescript-ts-base-mode
---
 indent-bars.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/indent-bars.el b/indent-bars.el
index 1ed355a690..9c9f69cca7 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -1601,7 +1601,8 @@ Adapted from `highlight-indentation-mode'."
     gpr-ts-mode-indent-offset)
    ((and (derived-mode-p 'python-mode) (boundp 'py-indent-offset))
     py-indent-offset)
-   ((and (derived-mode-p 'python-mode 'python-base-mode) (boundp 
'python-indent-offset))
+   ((and (derived-mode-p 'python-mode 'python-base-mode)
+        (boundp 'python-indent-offset))
     python-indent-offset)
    ((and (derived-mode-p 'ruby-mode) (boundp 'ruby-indent-level))
     ruby-indent-level)
@@ -1624,7 +1625,8 @@ Adapted from `highlight-indentation-mode'."
     js-indent-level)
    ((and (derived-mode-p 'js2-mode) (boundp 'js2-basic-offset))
     js2-basic-offset)
-   ((and (derived-mode-p 'typescript-ts-mode) (boundp 
'typescript-ts-mode-indent-offset))
+   ((and (derived-mode-p 'typescript-ts-base-mode)
+        (boundp 'typescript-ts-mode-indent-offset))
     typescript-ts-mode-indent-offset)
    ((and (derived-mode-p 'sws-mode) (boundp 'sws-tab-width))
     sws-tab-width)

Reply via email to