fileTypes cfg conf config ini prop name Generic Config patterns comment Color (with alpha): #aacc4322, #bf34fa, #ccc match #([a-fA-F0-9]{8}|[a-fA-F0-9]{6}|[a-fA-F0-9]{3})\b name constant.other.genconfig captures 1 name comment.line.number-sign.genconfig 2 name comment.line.double-dash.genconfig 3 name comment.line.double-slash.genconfig comment One line comment match (?:(?:^\s*)|\s+)(?:(#.*)|(--\s+.*)|([^:]//.*))$ ? name meta.comment.genconfig comment ; one line comment match (?:(?:^\s*)|\s+);\s*(?=.).*$ ? name comment.line.number-sign.genconfig comment Number or number with unit (like 10k, 12M, 92dpi etc) and also hex like values 0xdf match \b[0-9]+([a-zA-Z]+)?\b name constant.numeric.genconfig comment Constant match \b([tT]rue|[fF]alse|TRUE|FALSE)\b name constant.language.genconfig comment Constant match \b(?<!-)([oO]n|[oO]ff|ON|OFF|[yY]es|[nN]o|YES|NO|[nN]ull|NULL|[nN]one|NONE|nan|NaN|NAN)(?!-)\b name constant.language.genconfig include #quoted_single_string include #quoted_double_string include #double_string include #single_string comment One line word, or word with following {, or [word] or <word> match (?:^\s*(\w+)\s*(?={))|(?:^\s*(\w+)\s*$)|(^\s*\[.*\]\s*$)|(^\s*\<.*\>\s*$) name storage.type.genconfig comment Keywords match (^\s*|\b)(?<![.-])(function|define|ifn?def|endif|macro|insertmacro|index|location|alias|include|rewrite|if|then|else|start|stop|restart|with|alert|internal)(?![.-])\b name keyword.other.genconfig captures 1 name variable.parameter.genconfig comment Colorize key in lines like: key = value or key: value or key value match ^\s*(\w[\w-]*)[\s=:]\s* name meta.param.genconfig comment Var name: %name, %name%, $name, $name$, ${name}, %{name}, %(name), $(name) match ([\%\$@]{1,2}\{\w+\}[\%\$@]{0,2})|([\%\$@]{1,2}\(\w+\)[\%\$@]{0,2})|([\%\$@]{1,2}\w+[\%\$@]{0,2}) name storage.source.genconfig comment Constant like names (ie in uppercase: NAME, SOME_NAME) match \b[A-Z_][A-Z_0-9]*\b name support.constant.genconfig comment URL like strings (http://name.org, ssh://111.22.33.4:42) match \b(?:(\w+://.*)|localhost)\b name constant.other.genconfig comment RegExp match \^.*\$ name string.regexp.genconfig comment Operators match (!|\~|%|=|\^|\+|\-|\<|\>|\?|/|\*|\|) name keyword.operator.genconfig comment Mime types (text/plain, application/x-javascript etc) match \b(?<!/)[\w\-\.\+]+/[\w\-\.\+]+(?!/)\b name support.type.genconfig captures 1 name entity.name.function.genconfig comment function call: name() match \b(\w+)\b\( name meta.function.genconfig repository double_string begin " end " name string.quoted.double.genconfig patterns match \\\s*" name constant.character.genconfig include #double_string quoted_double_string begin \\" end \\" name string.quoted.qdouble.genconfig patterns include #quoted_double_string quoted_single_string begin \\' end \\' name string.quoted.qsignle.genconfig patterns include #quoted_single_string single_string begin ' end ' name string.quoted.signle.genconfig patterns match \\\s*' name constant.character.genconfig include #single_string scopeName source.genconfig uuid 6c0abe56-18d2-4957-ac45-01fa1a0cb62a