[refactor] More post-NSS WebCrypto cleanups (utility functions).
[chromium-blink-merge.git] / tools / gn / misc / tm / GN.tmLanguage
blob8a0f8a245794419b55997b12a2243a63215c64bd
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>
18 <string>\b(?:if)\b</string>
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>
68 <string>\b(?:action|action_foreach|copy|executable|group|shared_library|source_set|static_library)\b</string>
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>
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|set_sources_assignment_filter|template|tool|toolchain|toolchain_args|write_file)\b</string>
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>
92 <string>\b(?:all_dependent_configs|allow_circular_includes_from|args|cflags|cflags_c|cflags_cc|cflags_objc|cflags_objcc|check_includes|complete_static_lib|configs|data|data_deps|defines|depfile|deps|forward_dependent_configs_from|include_dirs|inputs|ldflags|lib_dirs|libs|output_extension|output_name|outputs|public|public_configs|public_deps|script|sources|testonly|visibility)\b</string>
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>