// [PackageDev] target_format: plist, ext: tmLanguage // CTRL+ALT+SHIFT+P shows selector { "name": "Generic Config", "scopeName": "source.genconfig", "fileTypes": ["cfg", "conf", "config", "ini", "prop"], "uuid": "6c0abe56-18d2-4957-ac45-01fa1a0cb62a", "patterns": [ { "name": "constant.other.genconfig", "match": "#([a-fA-F0-9]{8}|[a-fA-F0-9]{6}|[a-fA-F0-9]{3})\\b", "comment": "Color (with alpha): #aacc4322, #bf34fa, #ccc" }, { "name": "meta.comment.genconfig", "match": "(?:(?:^\\s*)|\\s+)(?:(#.*)|(--\\s+.*)|([^:]//.*))$\n?", "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" }, { "name": "comment.line.number-sign.genconfig", "match": "(?:(?:^\\s*)|\\s+);\\s*(?=.).*$\n?", "comment": "; one line comment" }, // NOTE: values with chars after f will match too (like 0xZZZ) { "name": "constant.numeric.genconfig", "match": "\\b[0-9]+([a-zA-Z]+)?\\b", "comment": "Number or number with unit (like 10k, 12M, 92dpi etc) and also hex like values 0xdf" }, { "name": "constant.language.genconfig", "match": "\\b([tT]rue|[fF]alse|TRUE|FALSE)\\b", "comment": "Constant" }, { "name": "constant.language.genconfig", "match": "\\b(?\\s*$)", "comment": "One line word, or word with following {, or [word] or " }, { "name": "keyword.other.genconfig", "match": "(^\\s*|\\b)(?|\\?|/|\\*|\\|)", "comment": "Operators" }, { "name": "support.type.genconfig", "match": "\\b(?