From 7e246005baa6ea4232de5c0665fe1f32744a5d4c Mon Sep 17 00:00:00 2001 From: PerilousBooklet Date: Sat, 20 Apr 2024 19:42:17 +0200 Subject: Add Kotlin syntax highlighting support. (#406) * WIP: added basic syntax highlighting for Kotlin. * WIP: added a few more patterns. * Fixed overcomplicated single-line comment pattern. * Fixed source syntax docs address. * Realigned single-line comment pattern. * Added .. and ..< operators and new FIX. * WIP: working on range operator patterns. * Some more adjustments. * Removed comment. * Fixed double dots left-adiacent to number being colored as number and fixed lambda color. * Update plugins/language_kotlin.lua Co-authored-by: Guldoman * Updated to use raw strings in the annotations and this patterns. * Added block_comment. * Fixed types indentation. * Achieved perfection.. * Added patterns for $ after var and let function * Added elvis operator. * Added pattern. * Fixed elvis operator. * Achieved true perfection. * Added entry to meta-languages package. * Bumped meta_languages version. * Bumped meta_languages version and added second _. * Update plugins/language_kotlin.lua Co-authored-by: Guldoman * Updated the range operator pattern. * Update plugins/language_kotlin.lua Co-authored-by: Guldoman * Update plugins/language_kotlin.lua Co-authored-by: Guldoman * Update plugins/language_kotlin.lua Co-authored-by: Guldoman * Fixed last patterns and tidied up a bit. --------- Co-authored-by: Guldoman --- manifest.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'manifest.json') diff --git a/manifest.json b/manifest.json index b4bb072..fc2a09c 100644 --- a/manifest.json +++ b/manifest.json @@ -113,6 +113,7 @@ "language_json": {}, "language_jsx": {}, "language_julia": {}, + "language_kotlin": {}, "language_lilypond": {}, "language_liquid": {}, "language_lobster": {}, @@ -164,7 +165,7 @@ "id": "meta_languages", "mod_version": "3", "type": "meta", - "version": "0.1.14" + "version": "0.1.15" }, { "description": "Align multiple carets and selections *([clip](https://user-images.githubusercontent.com/2798487/165631951-532f8d24-d596-4dd0-9d21-ff53c71ed32f.mp4))*", @@ -1160,6 +1161,16 @@ ], "version": "0.1" }, + { + "description": "Syntax for the [Kotlin](https://kotlinlang.org/docs/home.html) programming language", + "id": "language_kotlin", + "mod_version": "3", + "path": "plugins/language_kotlin.lua", + "tags": [ + "language" + ], + "version": "0.1" + }, { "checksum": "08a9f8635b09a98cec9dfca8bb65f24fd7b6585c7e8308773e7ddff9a3e5a60f", "description": "Syntax for [Kaitai](http://kaitai.io/) struct files", -- cgit v1.2.3