Sublime Text 2 Package for Kotlin Programming Language

Overview

Kotlin Sublime Text Package

This is Sublime Text package for Kotlin programming language.

Kotlin Sublime Text 2 Package Screenshoot

Overview

The following modules already implemented:

  • Kotlin Syntax Defenition Kotlin.tmLanguage

Download

Installation

There are three ways to install Kotlin Sublime Package:

  • Using archived package (kotlin.sublime-package)
  • Using version control system (GitHub)
  • Using raw files (Kotlin.tmLanguage) from repository tree

There is an instruction with detailed steps for any type of installation.

Contribution

If you want to contribute to this project, first of all you need to download the latest version of AAAPackageDev - useful tool for Sublime Text Packages developing. Then you can follow the tutorials:

There is also a full documentation of Sublime Text extending.

The best way to contribute is to send pull-requests though GitHub interface.

Links


by Vladimir Kostyukov, 2017

Comments
  • A lot of keywords not checked for word boundaries

    A lot of keywords not checked for word boundaries

    Anything starting with a "class" or "object" or maybe other keywords now triggers highlighting the line as a class header. If the same line somehow contains a '{' symbol, the rest of the file is not highlighted.

    val x = className + "{"
    val b = foo()
    val a = bar()
    
    val x = objectValue; val z = "{"
    val b = foo()
    val a = bar()
    
    opened by belyaev-mikhail 6
  • Keywords in function call identifiers

    Keywords in function call identifiers

    Keywords in function call identifiers result in mis-parsing.

    Example: eval("answer=42") which contains val

    • eval("answer is seen as an identifier set to 42
    • The rest of the document is seen as a string because of ")

    This also happens with other words such as classify, objection and traitor

    opened by TimePath 3
  • Add a license

    Add a license

    This is the same Apache license used by https://github.com/vkostyukov/la4j.

    We'd like to use this package for highlighting Kotlin code on github.com using the new syntax highlighter we've been developing. Would you be willing to add a license? Thanks!

    opened by aroben 2
  • Sublime 3 adaptations

    Sublime 3 adaptations

    Updated the build system to support the new features of Sublime 3. Compiler errors and warnings are now presented inline at the correct row and column in the editor.

    opened by idrougge 1
  • Comments inside class header not handled correctly

    Comments inside class header not handled correctly

    Examples:

    data class Foo(val x: Int) // a very cool class indeed
    data class Bar(val x: Int)
    
    class IAmAClass  /* this is a class, buds, and I am somehow not a comment: 2 + 4 */ {}
    fun foo() : Int {}
    
    opened by belyaev-mikhail 0
  • Breaks on interpolated strings

    Breaks on interpolated strings

    In a gradle build script,

    val buildFront = tasks.register<NpxTask>("asdf") {
        environment.set(mapOf("BUILD_PATH" to "${output.get().getAsFile().toString()}/static"))
        // broken highlighting after this line
    }
    

    the ${output.get().getAsFile().toString()} expression causes broken highlighting.

    opened by rwols 0
  • reorder longer comparison operators first

    reorder longer comparison operators first

    this makes Fira Code ligatures for these longer operators work correctly. See https://github.com/sublimehq/sublime_text/issues/4502, this seems to be an instance of that.

    tested locally by unzipping, modifying, and rezipping package.

    opened by benmosher 0
  • "Compile + run" doesn't work on Windows.

    "cmd": "kotlinc \"${file}\" -include-runtime -d ${file_base_name}.jar || exit 1; java -jar ${file_base_name}.jar"
    

    The above command will not run "java -jar ${file_base_name}.jar" on Windows. It seems to be modified to the following to work.

    "cmd": "(kotlinc \"${file}\" -include-runtime -d ${file_base_name}.jar || exit 1) && java -jar ${file_base_name}.jar",
    

    I tested it on Windows and CentOS.😃

    opened by LuoDiKaiHua 0
  • Support triple-quoted notation

    Support triple-quoted notation

    Add support to triple-quoted notation (https://www.baeldung.com/kotlin-string-template):

    • Without escapes ex.:
    val path = """C:\Dir1\Dir2"""
    
    • Multi-line
    val msg = """Item 1: $1.00
    Item 2: $0.50"""
    
    • Internal quotemark
    val str = """The field "abc" is readonly"""
    
    opened by IsraelBoiko-Objective 0
Owner
Vladimir Kostyukov
Hacking @finagle and @finch.
Vladimir Kostyukov
Speech-Text Converter is a simple task that enable the user to convert the speech to text or convert text to speech (by Mic)

Speech-Text Converter About Speech-Text Converter is a simple task that enable the user to convert the speech to text or convert text to speech (by Mi

Kareem Saeed 1 Oct 21, 2021
An example for who are all going to start learning Kotlin programming language to develop Android application.

Kotlin Example Here is an example for who are all going to start learning Kotlin programming language to develop Android application. First check this

Prabhakar Thota 56 Sep 16, 2022
Lambda-snake.kt - Snake Game Implementation for Web using Kotlin programming language compiled for Javascript

Projeto da disciplina de Linguagem de Programação Funcional 2021.1 (jan/2022) ??

Alex Candido 3 Jan 10, 2022
An easy to use package manager for Fabric Minecraft mods.

pacmc pacmc is a package manager for Fabric Minecraft mods. The aim of this project is to massively reduce the effort you have to put in to installing

Jakob K 109 Dec 30, 2022
Android utilities for easier and faster Kotlin programming.

Android utilities for easier and faster Kotlin programming. Download Gradle compile 'com.costular:kotlin-utils:0.1' How to use It depends on utilities

Diego Francisco Concepción 51 Oct 3, 2022
Exercises for Functional Programming learning in Kotlin with Arrow

Exercises for Functional Programming in Kotlin with Arrow-kt Exercises and practice code for Functional Programming learning in Kotlin with Arrow Requ

Jack Lo 3 Nov 11, 2021
A template that utilizes both Scala and Kotlin because why not (And also because I endorse programming hell)

Fabric-Scala-Kotlin-template A template that utilizes both Scala and Kotlin because why not (And also because I endorse programming hell) I don't care

null 1 Dec 25, 2021
Clean Code and Reactive Programming PlayGround for Bangkit 2021

Clean Code and Reactive Programming PlayGround for Bangkit 2021 Hello! This repo contains the IntelliJ project that I use to present my talk, "Clean A

raditya gumay 3 May 16, 2021
A pair of applications provide a direct means of integrating with one another via application programming interfaces (APIs)

What is a native integration? It's when a pair of applications provide a direct means of integrating with one another via application programming interfaces (APIs). Once integrated, data can flow between the apps and become more readily available to your employees.

Behruz Hurramov 2 Jan 17, 2022
A thought experiment on architecture, object-oriented programming, and composability.

Journal3 There's barely anything special about the features that Journal3 is offering, it's literally yet another journaling application. What is spec

Hadi Satrio 7 Dec 13, 2022
LifecycleMvp 1.2 0.0 Kotlin is MVP architecture implementation with Android Architecture Components and Kotlin language features

MinSDK 14+ Download Gradle Add to project level build.gradle allprojects { repositories { ... maven { url 'https://jitpack.io' }

Robert 20 Nov 9, 2021
🍼Debug Bottle is an Android runtime debug / develop tools written using kotlin language.

???? 中文 / ???? 日本語 / ???? English ?? Debug Bottle An Android debug / develop tools written using Kotlin language. All the features in Debug bottle are

Yuriel Arlencloyn 846 Nov 14, 2022
ATH Sample is a sample Authentication and Authorization Application with Kotlin Language and MVVM architecture.

ATH Sample ATH Sample is a sample Authentication and Authorization Application with Kotlin Language and MVVM architecture. Overview ATH Sample is a sa

AbolfaZl RezaEi 4 Jun 8, 2021
A furry-themed assembly language and interpreter written in Kotlin.

A furry-themed assembly language and interpreter written in Kotlin. Inspired by Furcode, the Synacor challenge, and JVM bytecode. I spent multiple hou

Maow 9 Nov 22, 2021
An under development minecraft plugin (1.8.8) to learning Kotlin language

CorePlus CorePlus is a minecraft plugin coded with Kotlin language. Still under development CorePlus will be an essential for each minecraft servers !

Gonz 3 Jun 16, 2021
FaceTimeClone app that implements Coroutines , mvvm architecture , clean architecture , navigation component , hilt , etc.... using kotlin language

This repository contains a FaceTimeClone app that implements Coroutines , mvvm architecture , clean architecture , navigation component , hilt , etc.... using kotlin language

null 17 Dec 13, 2022
Kotlin DALL·E 2 is a new AI system that can create realistic images and art from a description in natural language.

OpenAI Dall•E AI Kotlin Mobile App OpenAI Dall•E Application Build With Kotlin MVVM (Model - View - ViewModel) Clean Architecture, Beautiful Design UI

Murat ÖZTÜRK 15 Jan 1, 2023
Metremenqeemi - Android/iOS app to teach the Coptic Language

ⲙⲉⲧⲣⲉⲙⲛ̀ⲭⲏⲙⲓ The Open Source Android/iOS app to learn how to read and understand the Coptic Language Join our Discord Channel About the Curriculum The

Mark Yacoub 8 Aug 30, 2022
fusion4j - declarative rendering language for the JVM based on Neos.Fusion

fusion4j - declarative rendering language for the JVM based on Neos.Fusion Supports the Neos Fusion syntax/semantic as described in the official Neos

sandstorm 2 May 3, 2022