"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/langDefs/kotlin.lang" (12 May 2020, 1054 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "kotlin.lang": 3.53_vs_3.54.

    1 
    2 Description="Kotlin"
    3 
    4 Categories = {"source"}
    5 
    6 Keywords={
    7   { Id=1,
    8     List={
    9       "package", "as", "typealias", "class", "this", "super", "val", "var",
   10       "fun", "for", "null", "true", "false", "is", "in", "throw", "return", "break",
   11       "continue", "object", "if", "try", "else", "while", "do", "when", "interface",
   12       "yield", "typeof", "yield", "typeof", "import", "internal", "private", "protected",
   13       "public", "override",  "open",  "final",  "abstract",  "final",
   14       "enum",  "open",  "annotation"}
   15   },
   16   { Id=2,
   17     List={
   18       "Any","Unit", "String", "Array", "Int", "Boolean", "Char", "Long", "Double",
   19       "Float", "Short", "Byte" }
   20   },
   21   { Id=3,
   22     Regex=[[@\w+]]
   23   },
   24   { Id=4,
   25     Regex=[[(\w+)\s*\(]]
   26   }
   27 }
   28 
   29 Strings = {
   30   Delimiter=[['|`|"]],
   31     Interpolation=[[ [%$]\w+|\$\{.+?\} ]],
   32 }
   33 
   34 Comments = {
   35   { Block=true,
   36     Nested=false,
   37     Delimiter = { [[\/\*]], [[\*\/]] }
   38   },
   39   {
   40     Block=false,
   41     Delimiter = { [[//]] }
   42   }
   43 }
   44 
   45 Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\||\^]]