Commit Graph

15 Commits

Author SHA1 Message Date
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
Alexander Udalov
560e8cd83d The first version of indent file 2014-05-04 15:16:27 +04:00