240913.2.1 · 739513aba4bb8fb5b457e0e0685b28017c423799
#248 added cue-lang definition file
Signed-off-by: Andre Simon <as@andre-simon.de>
reading declarations
Changes to langDefs/cue.lang. All files
@@ -0,0 +1,55 @@++Description="CUE"++Categories = {"source", "config"}++Identifiers=[[ [a-zA-Z_\-#][\w\-]* ]]++Digits = [[ (?:0x|0X|0b)[0-9a-fA-F']+|\d*[\.]?\d+(?:[eE][\-\+]\d+)?[lLuUM]* ]]++Keywords={+ { Id=1,+ List= {+ "for", "in", "if", "let", "package", "import"+ }+ },+ { Id=2,+ List= {+ "bool", "int", "int8", "int16", "int32", "int64", "int128",+ "uint", "uint8", "uint16", "uint32", "uint64", "uint128",+ "float", "float32", "float64", "string", "bytes", "number ", "rune"+ }+ },+ { Id=3,+ List={+ "null", "true", "false"+ }+ },+ { Id=4,+ Regex=[[(\w+)\s*\(]]+ },+ { Id=5,+ Regex=[[(\w+\!\?)\:]]+ },+}+++Strings={+ Delimiter=[["""|'''|"|']],+ RawPrefix="#",+ Escape=[=[\\[ntvbrfa\\\?'"]|\\\d{3}|\\U[[:xdigit:]]+]=],+}++Comments = {+ {+ Block=false,+ Delimiter = { [[//]] }+ }+}++IgnoreCase=false+++Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\.|\:|\&|<|>|\!|=|\/|\*|\%|\+|\-|\~|\||\^|\?]]++