1 2Description="Wren" 3 4Categories = {"source"} 5 6Digits = [[ \d+[\.]?\d+|\d\d* ]] 7 8Keywords={ 9 { Id=1, 10 List={ 11 "break", "class", "construct", "else", "for", "foreign", "if", "import", 12 "in", "is", "return", "static", "super", "this", "var", "while", 13 } 14 }, 15 { Id=2, 16 List= { 17 "null", "true", "false" 18 } 19 }, 20 { Id=3, 21 Regex=[[_\w+]] 22 }, 23 { Id=4, 24 Regex=[[(\w+)\s*\(]] 25 } 26} 27 28Strings = { 29 Delimiter=[["]], 30 Interpolation = [[ %\([^(]+?\) ]], 31 Escape = [[ \\[0%\\\"abfnrtv]|\\U[0-9a-fA-F]{8}|\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2} ]] 32} 33 34Comments = { 35 { Block=true, 36 Nested=true, 37 Delimiter = { [[\/\*]], [[\*\/]] } 38 }, 39 { 40 Block=false, 41 Delimiter = { [[//]] } 42 } 43} 44 45IgnoreCase=false 46 47Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\||\^|\?]] 48 49EnableIndentation=true 50