[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode c51eaf8 257/496: Fix token for ! & ?
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode c51eaf8 257/496: Fix token for ! & ? |
Date: |
Sun, 29 Aug 2021 11:33:46 -0400 (EDT) |
branch: elpa/swift-mode
commit c51eaf824422c8e39d13738ff1ecfe8dc51bcf67
Author: uk-ar <yuuki.ari@gmail.com>
Commit: uk-ar <yuuki.ari@gmail.com>
Fix token for ! & ?
---
swift-mode.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/swift-mode.el b/swift-mode.el
index 451e6f8..3570651 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -218,7 +218,7 @@
"<<" ">>" "??")))
(defvar swift-smie--decl-specifier-regexp
- "\\(?1:class\\|mutating\\|override\\|static\\|unowned\\|weak\\)")
+ "\\(?1:mutating\\|override\\|static\\|unowned\\|weak\\)")
(defvar swift-smie--access-modifier-regexp
(regexp-opt '("private" "public" "internal")))
@@ -350,6 +350,10 @@
(goto-char (match-beginning 0))
(if (looking-back "[[:space:]]" 1 t) "OP" "T>"))
+ ((looking-back (regexp-opt swift-mode--type-decl-keywords) (- (point) 9)
t)
+ (goto-char (match-beginning 0))
+ (match-string-no-properties 0))
+
((looking-back swift-smie--operators-regexp (- (point) 3) t)
(goto-char (match-beginning 0)) "OP")
@@ -762,7 +766,7 @@ You can send text to the REPL process from other buffers
containing source.
(let ((table (make-syntax-table)))
;; Operators
- (dolist (i '(?+ ?- ?* ?/ ?& ?| ?^ ?! ?< ?> ?~))
+ (dolist (i '(?+ ?- ?* ?/ ?& ?| ?^ ?< ?> ?~))
(modify-syntax-entry i "." table))
;; Strings
@@ -771,6 +775,8 @@ You can send text to the REPL process from other buffers
containing source.
;; Additional symbols
(modify-syntax-entry ?_ "w" table)
+ (modify-syntax-entry ?? "_" table)
+ (modify-syntax-entry ?! "_" table)
(modify-syntax-entry ?: "_" table)
;; Comments
- [nongnu] elpa/swift-mode 9e6c538 210/496: Correct DECSPEC regex and lexer rule, (continued)
- [nongnu] elpa/swift-mode 9e6c538 210/496: Correct DECSPEC regex and lexer rule, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 2c67d92 213/496: Fix indentation of the closure arguments inside parentheses, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 5a858c7 218/496: Improve indentation of the array and dictionary expressions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 195d040 227/496: Merge pull request #76 from ap4y/batch_smie_fixes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode dbf48a1 232/496: Merge pull request #90 from nathankot/flycheck-framework-search-paths, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e6f1a3c 237/496: More configurability for flycheck, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 3e8befa 238/496: Merge pull request #92 from apiology/more_flycheck_option_vars, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 31fb250 248/496: added elseguard to lexer, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 071cd18 249/496: Merge pull request #100 from uk-ar/enable-pairing-for-curly-bracket, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7cefd8c 255/496: Fix token for generics, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c51eaf8 257/496: Fix token for ! & ?,
ELPA Syncer <=
- [nongnu] elpa/swift-mode ce816a8 270/496: Fix backward-sexp test by adding brackets, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 85e05ea 271/496: Merge pull request #105 from uk-ar/fix-move-by-sexp, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode befeb2a 017/496: Highlight bools and nil as constants, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 654d5e2 006/496: More work on font locking, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c4943a8 025/496: Add to auto-mode-alist, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0ad90f8 035/496: Fix a typo, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 19a61d9 022/496: fixup! Copy syntax table from rust-mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 406f2ba 028/496: Mention Emacs version in readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 2ca1425 026/496: Remove ackrc and travis yaml for now, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ec9243c 032/496: Tweaks to indentation, ELPA Syncer, 2021/08/29