[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master fc206ba 17/27: Untabify indents
From: |
Dmitry Gutov |
Subject: |
[elpa] master fc206ba 17/27: Untabify indents |
Date: |
Sat, 29 Oct 2016 00:04:19 +0000 (UTC) |
branch: master
commit fc206ba02d3f69228a16ef08d6698b7709cb9aeb
Author: Pavel Matcula <address@hidden>
Commit: Pavel Matcula <address@hidden>
Untabify indents
---
highlight-escape-sequences.el | 74 ++++++++++++++++++++---------------------
1 file changed, 37 insertions(+), 37 deletions(-)
diff --git a/highlight-escape-sequences.el b/highlight-escape-sequences.el
index 8f50fc0..7780035 100644
--- a/highlight-escape-sequences.el
+++ b/highlight-escape-sequences.el
@@ -55,10 +55,10 @@
(defconst hes-common-escape-sequence-re
(rx (submatch
(and ?\\ (submatch
- (or (repeat 1 3 (in "0-7"))
- (and ?x (repeat 2 xdigit))
- (and ?u (repeat 4 xdigit))
- (any "\"\'\\bfnrtv"))))))
+ (or (repeat 1 3 (in "0-7"))
+ (and ?x (repeat 2 xdigit))
+ (and ?u (repeat 4 xdigit))
+ (any "\"\'\\bfnrtv"))))))
"Regexp to match the most common escape sequences.
Currently handles:
@@ -70,11 +70,11 @@ Currently handles:
(defconst hes-c/c++/objc-escape-sequence-re
(rx (submatch
(and ?\\ (submatch
- (or (repeat 1 3 (in "0-7"))
- (and ?x (1+ xdigit))
- (and ?u (repeat 4 xdigit))
- (and ?U (repeat 8 xdigit))
- (any "\"\'\?\\abfnrtv"))))))
+ (or (repeat 1 3 (in "0-7"))
+ (and ?x (1+ xdigit))
+ (and ?u (repeat 4 xdigit))
+ (and ?U (repeat 8 xdigit))
+ (any "\"\'\?\\abfnrtv"))))))
"Regexp to match C/C++/ObjC escape sequences.
Currently handles:
@@ -86,9 +86,9 @@ Currently handles:
(defconst hes-java-escape-sequence-re
(rx (submatch
(and ?\\ (submatch
- (or (repeat 1 3 (in "0-7"))
- (and ?u (repeat 4 xdigit))
- (any "\"\'\\bfnrt"))))))
+ (or (repeat 1 3 (in "0-7"))
+ (and ?u (repeat 4 xdigit))
+ (any "\"\'\\bfnrt"))))))
"Regexp to match Java escape sequences.
Currently handles:
@@ -99,11 +99,11 @@ Currently handles:
(defconst hes-js-escape-sequence-re
(rx (submatch
(and ?\\ (submatch
- (or (repeat 1 3 (in "0-7"))
- (and ?x (repeat 2 xdigit))
- (and ?u (repeat 4 xdigit))
- ;; (any "\"\'\\bfnrtv")
- any))))) ;; deprecated
+ (or (repeat 1 3 (in "0-7"))
+ (and ?x (repeat 2 xdigit))
+ (and ?u (repeat 4 xdigit))
+ ;; (any "\"\'\\bfnrtv")
+ any))))) ;; deprecated
"Regexp to match JavaScript escape sequences.
Currently handles:
@@ -115,16 +115,16 @@ Currently handles:
(defconst hes-ruby-escape-sequence-re
(rx (submatch
(and ?\\ (submatch
- (or (repeat 1 3 (in "0-7"))
- (and ?x (repeat 1 2 xdigit))
- (and ?u
- (or (repeat 4 xdigit)
- (and ?{
- (repeat 1 6 xdigit)
- (0+ (1+ space)
- (repeat 1 6 xdigit))
- ?})))
- any)))))
+ (or (repeat 1 3 (in "0-7"))
+ (and ?x (repeat 1 2 xdigit))
+ (and ?u
+ (or (repeat 4 xdigit)
+ (and ?{
+ (repeat 1 6 xdigit)
+ (0+ (1+ space)
+ (repeat 1 6 xdigit))
+ ?})))
+ any)))))
"Regexp to match Ruby escape sequences.
Currently handles:
@@ -153,11 +153,11 @@ Currently doesn't handle \\C-, \\M-, etc.")
(defun hes-make-simple-escape-sequence-keywords(re)
`((,re
(1 (when (nth 3 (syntax-ppss))
- 'hes-escape-backslash-face)
- prepend)
+ 'hes-escape-backslash-face)
+ prepend)
(2 (when (nth 3 (syntax-ppss))
- 'hes-escape-sequence-face)
- prepend))))
+ 'hes-escape-sequence-face)
+ prepend))))
(define-obsolete-variable-alias 'hes-simple-modes 'hes-mode-alist
"Modes where escape sequences can appear in any string literal.")
@@ -186,11 +186,11 @@ Currently doesn't handle \\C-, \\M-, etc.")
(interactive)
(dolist (mode hes-mode-alist)
(if (atom mode)
- (font-lock-add-keywords mode (hes-make-simple-escape-sequence-keywords
hes-common-escape-sequence-re) 'append)
+ (font-lock-add-keywords mode (hes-make-simple-escape-sequence-keywords
hes-common-escape-sequence-re) 'append)
(when (stringp (cdr mode))
- (font-lock-add-keywords (car mode)
(hes-make-simple-escape-sequence-keywords (cdr mode)) 'append))
+ (font-lock-add-keywords (car mode)
(hes-make-simple-escape-sequence-keywords (cdr mode)) 'append))
(when (listp (cdr mode))
- (font-lock-add-keywords (car mode) (cdr mode) 'append)))))
+ (font-lock-add-keywords (car mode) (cdr mode) 'append)))))
;;;###autoload
(defun turn-off-hes-mode()
@@ -198,11 +198,11 @@ Currently doesn't handle \\C-, \\M-, etc.")
(interactive)
(dolist (mode hes-mode-alist)
(if (atom mode)
- (font-lock-remove-keywords mode
(hes-make-simple-escape-sequence-keywords hes-common-escape-sequence-re))
+ (font-lock-remove-keywords mode
(hes-make-simple-escape-sequence-keywords hes-common-escape-sequence-re))
(when (stringp (cdr mode))
- (font-lock-remove-keywords (car mode)
(hes-make-simple-escape-sequence-keywords (cdr mode))))
+ (font-lock-remove-keywords (car mode)
(hes-make-simple-escape-sequence-keywords (cdr mode))))
(when (listp (cdr mode))
- (font-lock-remove-keywords (car mode) (cdr mode))))))
+ (font-lock-remove-keywords (car mode) (cdr mode))))))
;;;###autoload
(define-minor-mode hes-mode
- [elpa] master a031ee2 20/27: Add Emacs Lisp and Clojure (same as Java), (continued)
- [elpa] master a031ee2 20/27: Add Emacs Lisp and Clojure (same as Java), Dmitry Gutov, 2016/10/28
- [elpa] master 083954e 19/27: Restore compatibility with earlier Emacsen, Dmitry Gutov, 2016/10/28
- [elpa] master 20d3190 22/27: Update copyright, Dmitry Gutov, 2016/10/28
- [elpa] master 02b8d09 10/27: Add more specific regexps, Dmitry Gutov, 2016/10/28
- [elpa] master 9c80a93 18/27: Merge pull request #1 from dev-plvlml/master, Dmitry Gutov, 2016/10/28
- [elpa] master 72c3cdc 07/27: Change wording, Dmitry Gutov, 2016/10/28
- [elpa] master 1e79174 11/27: Fix extra indent, Dmitry Gutov, 2016/10/28
- [elpa] master fa6dd96 24/27: Delete the obsolete alias, Dmitry Gutov, 2016/10/28
- [elpa] master ffb8c5d 21/27: Merge pull request #3 from plexus/add-elisp-clojure, Dmitry Gutov, 2016/10/28
- [elpa] master 0e74c8c 27/27: Add hes to externals-list, Dmitry Gutov, 2016/10/28
- [elpa] master fc206ba 17/27: Untabify indents,
Dmitry Gutov <=
- [elpa] master c3f28f2 25/27: Shorten some lines, Dmitry Gutov, 2016/10/28
- [elpa] master 9b2c607 26/27: Add 'packages/highlight-escape-sequences/' from commit 'c3f28f2003638e88e5cf0b03835412af7814f3b0', Dmitry Gutov, 2016/10/28
- [elpa] master 738f1e3 09/27: Add distinct regexps, Dmitry Gutov, 2016/10/28
- [elpa] master 460e92b 15/27: Add comments with the cases handled, Dmitry Gutov, 2016/10/28
- [elpa] master e86a466 23/27: Improve commentary, Dmitry Gutov, 2016/10/28
- [elpa] master aaabd19 14/27: Switch to rx macro, Dmitry Gutov, 2016/10/28