[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/jade-mode 275ab149ed 051/128: Merge pull request #11 from
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/jade-mode 275ab149ed 051/128: Merge pull request #11 from jkpl/master |
Date: |
Sat, 29 Jan 2022 08:24:46 -0500 (EST) |
branch: elpa/jade-mode
commit 275ab149edb0f6bcfae6ac17ba456f3351191604
Merge: ed4275a1f8 3db33f4642
Author: Brian Carlson <brian.m.carlson@gmail.com>
Commit: Brian Carlson <brian.m.carlson@gmail.com>
Merge pull request #11 from jkpl/master
Improved sws indent and stylus syntax highlight
---
stylus-mode.el | 1 +
sws-mode.el | 20 ++++++++++++--------
2 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/stylus-mode.el b/stylus-mode.el
index 63eef0b6d0..46cc196249 100644
--- a/stylus-mode.el
+++ b/stylus-mode.el
@@ -57,6 +57,7 @@
(modify-syntax-entry ?\/ ". 124b" syntable)
(modify-syntax-entry ?* ". 23" syntable)
(modify-syntax-entry ?\n "> b" syntable)
+ (modify-syntax-entry ?' "\"" syntable)
syntable)
"Syntax table for `stylus-mode'.")
diff --git a/sws-mode.el b/sws-mode.el
index 51dbcd137e..094211490b 100644
--- a/sws-mode.el
+++ b/sws-mode.el
@@ -14,8 +14,11 @@
(defun sws-previous-indentation ()
"Gets indentation of previous line"
(save-excursion
- (previous-line)
- (current-indentation)))
+ (forward-line -1)
+ (if (bobp) 0
+ (progn
+ (while (and (looking-at "^[ \t]*$") (not (bobp))) (forward-line -1))
+ (current-indentation)))))
(defun sws-max-indent ()
"Calculates max indentation"
@@ -44,12 +47,13 @@
(defun sws-indent-line ()
"Indents current line"
(interactive)
- (if mark-active
- (sws-indent-region)
- (if (sws-at-bot-p)
- (sws-do-indent-line)
- ;; instead of adjusting indent, move point to text
- (sws-point-to-bot))))
+ (if (eq this-command 'indent-for-tab-command)
+ (if mark-active
+ (sws-indent-region (region-beginning) (region-end))
+ (if (sws-at-bot-p)
+ (sws-do-indent-line)
+ (sws-point-to-bot)))
+ (indent-to (sws-previous-indentation))))
(defun sws-at-bol-p ()
"If point is at beginning of line"
- [nongnu] elpa/jade-mode 8a25dd6702 024/128: Merge pull request #4 from travisjeffery/master, (continued)
- [nongnu] elpa/jade-mode 8a25dd6702 024/128: Merge pull request #4 from travisjeffery/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 41351ec293 027/128: Add autoload declarations, explicit requires and ELPA package dependencies., ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode c513eded33 045/128: the string doctype now works as a doctype keyword., ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode a1cbadd84d 026/128: add .el file headers to enable automatic packaging - closes gh#6, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 4d2f58abd7 044/128: Merge https://github.com/brianc/jade-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 62c012c8d6 039/128: Improved Stylus comments syntax highlighting., ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 00c789673f 068/128: Closes #26. Fix inline '//' highlight as comment, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 8f61e0dc6a 040/128: Decimal point can be part of a constant., ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 109b9850d2 041/128: Created a syntax table for Stylus mode., ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode f540df5ee6 056/128: Merge pull request #16 from tardyp/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 275ab149ed 051/128: Merge pull request #11 from jkpl/master,
ELPA Syncer <=
- [nongnu] elpa/jade-mode d90ad2cc02 036/128: Add syntax table entry for single line comment., ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 05d671fcdb 057/128: Add comment syntax to allow for M-x (un)comment-region., ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 351f756569 083/128: [#37] Highlight string lit. manually - Closes #37, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode a90b512c6e 086/128: [#39] add two functions to hl JS blocks, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 57ab4d6555 085/128: [#39] add JS examples to highlight, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode bbaf2bb3a1 092/128: add a THIRD comment type and use THAT ad default, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 4336ae9cc4 097/128: [#46] ignore .elc files, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 42bb8501b4 099/128: fix some compile warnings and sexp-region, ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode 0de371694a 053/128: Match zero or more whitespace in BOL instead of one or more., ELPA Syncer, 2022/01/29
- [nongnu] elpa/jade-mode c4014d8a9c 098/128: Merge pull request #50 from tjefferson08/46_unit_tests, ELPA Syncer, 2022/01/29