[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/kotlin-mode 472ae23d6a 113/162: Fix syntax highlighting of
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/kotlin-mode 472ae23d6a 113/162: Fix syntax highlighting of star-projected types |
Date: |
Sat, 29 Jan 2022 08:25:28 -0500 (EST) |
branch: elpa/kotlin-mode
commit 472ae23d6ad0fd17c6fc362efc20ece3d0264969
Author: Colin Fuller <cjfuller@gmail.com>
Commit: Colin Fuller <cjfuller@gmail.com>
Fix syntax highlighting of star-projected types
Previously, when encountering a star-projected type (like `List<*>`),
kotlin-mode would highlight it only to the opening `<`. This commit adds
`*` to
the characters that can appear in a type so that it correctly highlights
through the closing `>`.
Tested by creating a file `test.kt` with the following contents:
```
val x: List<*> = f()
```
Prior to this commit, this would only highlight through the opening `<`,
now it
highlights through the closing `>`.
---
kotlin-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kotlin-mode.el b/kotlin-mode.el
index dda9cdc2ac..143cc880e4 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -214,7 +214,7 @@
;; Types
(,(rx-to-string
- `(and bow upper (group (* (or word "<" ">" "." "?" "!"))))
+ `(and bow upper (group (* (or word "<" ">" "." "?" "!" "*"))))
t)
0 font-lock-type-face)
- [nongnu] elpa/kotlin-mode 96b37d211c 139/162: Merge pull request #45 from taku0/add_backup_to_gitignore, (continued)
- [nongnu] elpa/kotlin-mode 96b37d211c 139/162: Merge pull request #45 from taku0/add_backup_to_gitignore, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode d9d77ed459 069/162: indentation logic handling lambdas, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 82db4dce0c 077/162: basic indentation test, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 49ef724e96 076/162: additional keywords and smarter highlighting, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 257647d5d6 083/162: handle chained method calls on multiple lines, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode e1540a5ddf 087/162: Merge pull request #10 from gregghz/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode ad16798e02 091/162: Set proper indentation for closing brackets preceded by a blank line, ELPA Syncer, 2022/01/29
- [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 <=
- [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, 2022/01/29
- [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