keybuk | 4de9a78 | 2015-04-22 10:30:11 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| 3 | <plist version="1.0"> |
| 4 | <dict> |
| 5 | <key>fileTypes</key> |
| 6 | <array> |
| 7 | <string>gn</string> |
| 8 | <string>gni</string> |
| 9 | </array> |
| 10 | <key>name</key> |
| 11 | <string>GN</string> |
| 12 | <key>patterns</key> |
| 13 | <array> |
| 14 | <dict> |
| 15 | <key>comment</key> |
| 16 | <string>keywords</string> |
| 17 | <key>match</key> |
Sylvain Defresne | 8fe0200 | 2021-02-08 13:41:19 +0100 | [diff] [blame] | 18 | <string>\b(?:if|else)\b</string> |
keybuk | 4de9a78 | 2015-04-22 10:30:11 -0700 | [diff] [blame] | 19 | <key>name</key> |
| 20 | <string>keyword.control.gn</string> |
| 21 | </dict> |
| 22 | <dict> |
| 23 | <key>comment</key> |
| 24 | <string>constants</string> |
| 25 | <key>match</key> |
| 26 | <string>\b(?:true|false)\b</string> |
| 27 | <key>name</key> |
| 28 | <string>constant.language.gn</string> |
| 29 | </dict> |
| 30 | <dict> |
| 31 | <key>comment</key> |
| 32 | <string>numbers</string> |
| 33 | <key>match</key> |
| 34 | <string>\b\d+\.?(?:\d+)?\b</string> |
| 35 | <key>name</key> |
| 36 | <string>constant.numeric.gn</string> |
| 37 | </dict> |
| 38 | <dict> |
| 39 | <key>comment</key> |
| 40 | <string>double quoted string</string> |
| 41 | <key>match</key> |
| 42 | <string>\"[^\"]*\"</string> |
| 43 | <key>name</key> |
| 44 | <string>string.quoted.double.gn</string> |
| 45 | </dict> |
| 46 | <dict> |
| 47 | <key>comment</key> |
| 48 | <string>comment</string> |
| 49 | <key>begin</key> |
| 50 | <string>#</string> |
| 51 | <key>end</key> |
| 52 | <string>$</string> |
| 53 | <key>name</key> |
| 54 | <string>comment.gn</string> |
| 55 | </dict> |
| 56 | <dict> |
| 57 | <key>comment</key> |
| 58 | <string>operators</string> |
| 59 | <key>match</key> |
| 60 | <string>(?:=|==|\+=|-=|\+|-)</string> |
| 61 | <key>name</key> |
| 62 | <string>keyword.operator.gn</string> |
| 63 | </dict> |
| 64 | <dict> |
| 65 | <key>comment</key> |
| 66 | <string>targets</string> |
| 67 | <key>match</key> |
Petr Hosek | fe36c7c | 2019-11-26 14:38:08 -0800 | [diff] [blame] | 68 | <string>\b(?:action|action_foreach|copy|executable|group|loadable_module|shared_library|source_set|static_library|generated_file|rust_library|rust_proc_macro)\b</string> |
keybuk | 4de9a78 | 2015-04-22 10:30:11 -0700 | [diff] [blame] | 69 | <key>name</key> |
| 70 | <string>entity.name.tag.gn</string> |
| 71 | </dict> |
| 72 | <dict> |
| 73 | <key>comment</key> |
| 74 | <string>functions</string> |
| 75 | <key>match</key> |
Sylvain Defresne | ad0a7ad | 2020-10-15 15:03:44 +0200 | [diff] [blame] | 76 | <string>\b(?:assert|config|declare_args|defined|exec_script|foreach|get_label_info|get_path_info|get_target_outputs|getenv|import|print|process_file_template|read_file|rebase_path|set_default_toolchain|set_defaults|split_list|string_join|string_split|template|tool|toolchain|toolchain_args|propagates_configs|write_file)\b</string> |
keybuk | 4de9a78 | 2015-04-22 10:30:11 -0700 | [diff] [blame] | 77 | <key>name</key> |
| 78 | <string>entity.name.function.gn</string> |
| 79 | </dict> |
| 80 | <dict> |
| 81 | <key>comment</key> |
| 82 | <string>predefined variables</string> |
| 83 | <key>match</key> |
| 84 | <string>\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|python_path|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b</string> |
| 85 | <key>name</key> |
| 86 | <string>variable.parameter.gn</string> |
| 87 | </dict> |
| 88 | <dict> |
| 89 | <key>comment</key> |
| 90 | <string>target variables</string> |
| 91 | <key>match</key> |
Sylvain Defresne | 3281c66 | 2020-10-15 15:00:37 +0200 | [diff] [blame] | 92 | <string>\b(?:all_dependent_configs|allow_circular_includes_from|args|asmflags|cflags|cflags_c|cflags_cc|cflags_objc|cflags_objcc|check_includes|complete_static_lib|configs|data|data_deps|defines|depfile|deps|framework_dirs|frameworks|include_dirs|inputs|ldflags|lib_dirs|libs|output_extension|output_name|outputs|public|public_configs|public_deps|script|sources|testonly|visibility|contents|output_conversion|rebase|data_keys|walk_keys)\b</string> |
keybuk | 4de9a78 | 2015-04-22 10:30:11 -0700 | [diff] [blame] | 93 | <key>name</key> |
| 94 | <string>entity.other.attribute-name.gn</string> |
| 95 | </dict> |
| 96 | </array> |
| 97 | <key>scopeName</key> |
| 98 | <string>source.gn</string> |
| 99 | <key>uuid</key> |
| 100 | <string>DE419F8C-EC46-4824-87F3-732BD08694DC</string> |
| 101 | </dict> |
| 102 | </plist> |