[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/kotlin-mode 5d2d7b4f5a 157/162: Make underscore and at sig
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/kotlin-mode 5d2d7b4f5a 157/162: Make underscore and at sign as a part of a symbol |
Date: |
Sat, 29 Jan 2022 08:25:32 -0500 (EST) |
branch: elpa/kotlin-mode
commit 5d2d7b4f5afb5a1abc365ffebfbff2912bee05d9
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>
Make underscore and at sign as a part of a symbol
- C-M-f (`forward-sexp') and C-M-b (`backward-sexp') skip those
characters.
- M-f (`forward-word') and M-b (`backward-word') stop at those
characters, like `java-mode'.
Use `superword-mode' to restore original behaviour.
Fixes
https://github.com/Emacs-Kotlin-Mode-Maintainers/kotlin-mode/issues/59.
---
kotlin-mode.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/kotlin-mode.el b/kotlin-mode.el
index bc331cefc4..1c0334f2b7 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -143,8 +143,9 @@
(modify-syntax-entry ?\' "\"" st)
(modify-syntax-entry ?` "\"" st)
- ;; `_' as being a valid part of a word
- (modify-syntax-entry ?_ "w" st)
+ ;; `_' and `@' as being a valid part of a symbol
+ (modify-syntax-entry ?_ "_" st)
+ (modify-syntax-entry ?@ "_" st)
;; b-style comment
(modify-syntax-entry ?/ ". 124b" st)
@@ -259,7 +260,7 @@
(,(rx-to-string
`(and bow (or ,@kotlin-mode--val-decl-keywords) eow
(+ space)
- (group (+ word)) (* space) (\? ":"))
+ (group (+ (or word (syntax symbol)))) (* space) (\? ":"))
t)
1 font-lock-variable-name-face t)
- [nongnu] elpa/kotlin-mode ebcf6f3730 102/162: switch to tab-width, (continued)
- [nongnu] elpa/kotlin-mode ebcf6f3730 102/162: switch to tab-width, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 1b6d311168 108/162: Merge pull request #31 from jojojames/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 734b08408c 103/162: Add send-{block, buffer, line, region}-and-focus functions, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 472ae23d6a 113/162: Fix syntax highlighting of star-projected types, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 002dd1497c 112/162: Merge pull request #36 from mikegolod/issue-35, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode ea5f378e40 129/162: Merge pull request #43 from taku0/add-prefix-to-methods, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode b4b575ce3a 130/162: Merge pull request #41 from ppareit/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 5dbf5dbf5f 132/162: Add *~ to .gitignore, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode e8100a9070 137/162: Adds more emacs versions to test matrix, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 29730e7908 153/162: Add Makefile, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 5d2d7b4f5a 157/162: Make underscore and at sign as a part of a symbol,
ELPA Syncer <=
- [nongnu] elpa/kotlin-mode 613539eedc 042/162: Fix trailing parentheses, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode b4b1ace8cc 043/162: In kotlin-mode.el: (c) -> ©, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 9762ca895d 050/162: The characters '?' and '!' are now font-locked properly in types, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 8910b4bf55 054/162: Add "as" to set of statement keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 4aef379a2a 062/162: Removed rx dependency from Caskfile, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 0d89426a75 064/162: Merge branch 'package-improvements' of https://github.com/rexim/kotlin-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 565a266142 063/162: Add kt to auto-mode-alist to trigger kotlin-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 043615d3c3 065/162: Merge branch 'master' of https://github.com/purcell/kotlin-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode b4ec722a4c 071/162: lexical-binding setting must be at first line, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode ed5bb641a9 073/162: makes tab-width configurable, ELPA Syncer, 2022/01/29