Alexander Udalov
cfa6be8fad
Update to Kotlin 1.5 with value, @JvmInline and no experimental coroutines
2021-02-17 14:25:36 +01:00
Tom Plunket
f338707b2a
It turns out that Kotlin "raw" strings can do interpolation.
2020-11-02 08:32:24 +01:00
Tom Plunket
d7d6e6a1bb
Raw strings don't do interpolation nor backslash escaping.
2020-11-02 08:32:24 +01:00
Alexander Udalov
33606c3163
Add type names from kotlin-stdlib and kotlin-stdlib-common
...
Fixes #12 .
2020-07-13 00:13:33 +02:00
Alexander Udalov
95848f43a7
Tweak ktOperator syntax group
...
- Add comparison operators: ==, !=, ===, !==, <, <=, >, >=. The latter
four are highlighted only if there's a whitespace nearby (as per the
Kotlin style guide), to avoid coloring generic type parameters and
arguments
- Do not highlight '?', otherwise the safe call operator '?.' looks
weird. Also '?' at the end of nullable types is not exactly an
operator
- Add 'as' / 'as?'
2019-05-26 13:19:31 +02:00
Paolo Gavocanov
4b8675991c
operators as agreed in https://github.com/udalov/kotlin-vim/pull/11
2019-05-26 13:17:02 +02:00
Paolo Gavocanov
0a900d06a2
vimlint, add operators, use hi link def
2019-05-26 13:17:01 +02:00
Alexander Udalov
30c6ad5689
Support unsigned integer literals
2019-01-14 23:20:06 +01:00
Alexander Udalov
7be3831fd2
Simplify kdoc regexes, accept param in see/sample
2019-01-14 21:00:26 +01:00
Alexander Udalov
aad2351bbd
Exclude kdoc syntax from string interpolation
2019-01-14 20:59:31 +01:00
sciencesakura
e3273fcba8
Add kDoc syntax
2019-01-14 20:32:34 +01:00
Alexander Udalov
8f70d8161f
Do not highlight special symbols and TODOs in string interpolation
2019-01-14 20:31:42 +01:00
Alexander Udalov
51578840c5
Remove obsolete modifiers 'header' and 'impl'
...
Fixes #19
2018-10-21 10:48:59 +02:00
Alexander Udalov
cf0f4814b9
Support multiple quotes at the end of raw strings
...
See https://github.com/JetBrains/kotlin/blob/1.2.0/compiler/frontend/src/org/jetbrains/kotlin/lexer/Kotlin.flex#L132
Fixes #10
2017-11-23 10:50:26 +01:00
Alexander Udalov
6f60b66bb4
Update to 1.2-Beta: add 'expect', 'actual'
2017-09-18 14:08:06 +03:00
笈川桐枝 (Snape3058)
7fa99d0706
Update number pattern with underscore separators ( #8 )
2017-08-17 10:33:33 +03:00
Alexander Udalov
135a4febf6
Update to 1.1-M04: add 'header', 'impl', remove 'coroutine'
2016-12-29 20:56:22 +03:00
Alexander Udalov
9bb133b742
Update to development builds of 1.1: add 'typealias', 'coroutine', 'suspend', remove 'yield', 'async'
2016-07-04 14:58:54 +03:00
Alexander Udalov
0b0f271333
Add shebang (supported in .kts files)
2016-02-24 12:25:51 +03:00
Alexander Udalov
e8f2414942
Update to 1.0.0 Beta 4: add 'yield', 'typeof', 'async'
2015-12-23 21:44:39 +03:00
Alexander Udalov
68cdbe1abe
Update to 1.0.0 Beta 3: remove 'This' keyword
2015-12-07 16:36:53 +03:00
Alexander Udalov
c5223a6f60
Update to M14
2015-10-01 03:16:29 +03:00
Alexander Udalov
512c1e45c6
Adapt to Kotlin M13
2015-09-17 18:11:29 +03:00
Alexander Udalov
5e1f311dc0
Temporarily disable highligthing of labels after 'this', 'return', etc.
...
Because it clashes with annotations of form '@kotlin.jvm.throws', and so for
example in 'this@Foo.continue ()' the 'continue' part is also highlighted, which
is wrong. To be investigated later
2015-06-29 21:22:05 +03:00
Alexander Udalov
4a6bfb6177
Support annotation targets ('@field:annotation')
2015-06-27 13:24:46 +03:00
Alexander Udalov
84d33e4246
Add 'sealed' keyword
2015-06-27 13:13:00 +03:00
Alexander Udalov
ef80073c24
Support fully qualified names in annotations
2015-06-26 01:32:15 +03:00
Alexander Udalov
b76f3bd8f4
Adapt to Kotlin M12, regroup modifiers
2015-06-08 03:59:58 +03:00
Alexander Udalov
6fdcef9484
Rename default -> companion as per pre-M11 changes
...
See http://blog.jetbrains.com/kotlin/2015/03/follw-up-new-class-object-syntax/ and 2a6facaef6
2015-03-18 01:44:01 +03:00
Alexander Udalov
54bc4bb379
Add 'constructor' and 'init' keywords introduced in M11
2015-03-11 18:19:36 +03:00
Alexander Udalov
aa57b429a4
Add 'default' soft keyword introduced in M11
2015-03-06 14:19:47 +03:00
Alexander Udalov
331ea71186
Add missing soft keywords: reified & dynamic
2014-12-03 12:53:09 +03:00
Alexander Udalov
ecf49c97cf
Update keyword: type -> typealias
2014-11-17 20:24:11 +03:00
chocolateboy
53cd777a2c
fix issue with nested comments
2014-07-15 22:23:22 +01:00
Alexander Udalov
47fe798a97
Extract and add some new modifiers/annotations
2014-07-06 05:11:38 +04:00
Alexander Udalov
397df5ff9a
Use conventional regex character classes
2014-07-06 05:08:50 +04:00
Alexander Udalov
581d4e70e7
Support escape sequences in character literals and strings
...
According to Kotlin compiler sources, the following escape sequences are
supported at the moment: \t \b \n \r \' \" \$ \\ \uXXXX
2014-07-06 05:04:33 +04:00
Alexander Udalov
f315ece65f
Use matchgroup to highlight braces of string interpolation
...
This fixes an annoying regression where ktComplexInterpolation's end was never
matched because of a closing ktComplexInterpolationBrace
2014-07-06 04:43:34 +04:00
Alexander Udalov
8e76262ae7
Fix highlighting of braces outside of string templates
2014-06-25 18:09:13 +04:00
Alexander Udalov
1e1ddf68e6
Highlight opening and closing braces of string interpolation
2014-06-21 15:47:45 +04:00
Alexander Udalov
50437838b5
Support labels ('break@foo', 'this@Foo')
2014-06-21 15:25:34 +04:00
Alexander Udalov
d273696657
Support nested comments
2014-06-21 15:12:15 +04:00
Alexander Udalov
cfc6685726
Don't highlight simple interpolation inside complex
...
It's usually an error (things like: "${if (true) abc$def}"), but nevertheless
shouldn't be highlighted as a simple interpolation
2014-06-16 01:49:03 +04:00
Alexander Udalov
e02abb1473
Fix floating point literals regexp
...
- don't match '-' or '+' in the beginning, similar to Vim's built-in schemes
- require a word boundary in the beginning ("abcde5")
- require a digit before 'e' ("e5")
2014-06-16 01:33:14 +04:00
Alexander Udalov
130f321326
Support string interpolation
2014-06-13 15:08:58 +04:00
Alexander Udalov
a8e9ba4af0
Support names escaped with backticks
2014-06-13 15:01:26 +04:00
Alexander Udalov
e9b1f1805c
Support hexadecimal and binary integers
2014-06-13 14:25:16 +04:00
Alexander Udalov
eb8f2578ae
Support floating point literals with exponent
2014-06-13 14:07:48 +04:00
Alexander Udalov
a612363530
Support long and float literal suffixes
2014-06-13 04:22:25 +04:00
Alexander Udalov
b7a844dccb
Don't load syntax scheme more than once
2014-06-13 04:01:33 +04:00