[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/kotlin-mode 8e4018e7a5 044/162: Added new keywords to kotl
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/kotlin-mode 8e4018e7a5 044/162: Added new keywords to kotlin-mode |
Date: |
Sat, 29 Jan 2022 08:25:21 -0500 (EST) |
branch: elpa/kotlin-mode
commit 8e4018e7a5f17199fff4f32f539408a534e4760f
Author: Remy Goldschmidt <taktoa@gmail.com>
Commit: Remy Goldschmidt <taktoa@gmail.com>
Added new keywords to kotlin-mode
---
kotlin-mode.el | 28 +++++++++++-----------------
1 file changed, 11 insertions(+), 17 deletions(-)
diff --git a/kotlin-mode.el b/kotlin-mode.el
index aeb9d859d4..594b601761 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -59,7 +59,7 @@
'("package" "import"))
(defconst kotlin-mode--type-decl-keywords
- '("class" "trait" "typealias"))
+ '("class" "trait" "typealias" "enum"))
(defconst kotlin-mode--fun-decl-keywords
'("fun"))
@@ -68,8 +68,14 @@
'("val" "var"))
(defconst kotlin-mode--statement-keywords
- '("if" "else" "try" "while" "do"
- "throw" "return" "continue" "break" "when" "is" "in"))
+ '(;; Branching
+ "if" "else"
+ ;; Exceptions
+ "try" "catch" "finally" "throw"
+ ;; Loops
+ "while" "for" "do" "continue" "break"
+ ;; Miscellaneous
+ "when" "is" "in"))
(defconst kotlin-mode--context-variables-keywords
'("this" "super"))
@@ -88,7 +94,8 @@
(defconst kotlin-mode--modifier-keywords
'("open" "private" "protected" "public"
- "override" "abstract" "final"))
+ "override" "abstract" "final"
+ "annotation" "internal" "in" "out"))
(defconst kotlin-mode--property-keywords
'("by" "get" "set"))
@@ -146,19 +153,6 @@
t)
1 font-lock-keyword-face)
- ;; try-catch-finally
- ;; `catch' and `finally' are valid identifier being used as variable
- (,(rx-to-string
- `(and bow (group "catch") eow
- (* space) (*? anything) "{" )
- t)
- 1 font-lock-keyword-face)
- (,(rx-to-string
- `(and bow (group "finally") eow
- (*? (or space ?\n)) "{")
- t)
- 1 font-lock-keyword-face)
-
;; Properties
;; by/get/set are valid identifiers being used as variable
;; TODO: Highlight keywords in the property declaration statement
- [nongnu] elpa/kotlin-mode 8e6dd578f2 154/162: Merge pull request #52 from taku0/add-makefile, (continued)
- [nongnu] elpa/kotlin-mode 8e6dd578f2 154/162: Merge pull request #52 from taku0/add-makefile, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode ffeb70e788 048/162: Temporarily disable syntax highlighting for "by", "get", "set", "in", and "out", ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 86b94d7d34 160/162: Add LICENSE file, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 39db5b6208 033/162: kotlin-mode: Highlight properties, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 300acc2341 036/162: kotlin-mode: Highlight package names, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode a174f5ba44 039/162: kotlin-mode: Add kotlin-mode--match-interpolation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 42b7af8122 046/162: 'data class' -> 'data', ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 6c5531cd6f 059/162: Add autoload cookie to the kotlin-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 876cc27dc1 159/162: Merge pull request #63 from phikal/patch-1, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode a51321a4d1 161/162: Merge pull request #64 from phst/license, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 8e4018e7a5 044/162: Added new keywords to kotlin-mode,
ELPA Syncer <=
- [nongnu] elpa/kotlin-mode fdadc96898 034/162: kotlin-mode: Defin initializer keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode c3942942a8 066/162: Merge branch 'patch-1' of https://github.com/jasonm23/kotlin-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode d6720fe9bc 123/162: Merge pull request #40 from martinblake/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode fd099c806b 134/162: Propertize multiline strings, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 0649b358f2 141/162: Make compatible with 24.3, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 653f82488c 149/162: Merge pull request #48 from taku0/fix-for-24.3, ELPA Syncer, 2022/01/29