Skip to content

Commit cd3e489

Browse files
Added predefined constants
1 parent 9877e9e commit cd3e489

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

components/prism-gn.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Prism.languages.gn = {
3838
alias: 'keyword'
3939
},
4040
'function': /\b[a-z_]\w*(?=\s*\()/i,
41+
'constant': /\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_out_dir|target_os)\b/,
4142

4243
'number': /-?\b\d+\b/,
4344

components/prism-gn.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)