Skip to content

Commit

Permalink
Added predefined constants
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Sep 1, 2021
1 parent 9877e9e commit cd3e489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/prism-gn.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Prism.languages.gn = {
alias: 'keyword'
},
'function': /\b[a-z_]\w*(?=\s*\()/i,
'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/,

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

Expand Down
2 changes: 1 addition & 1 deletion components/prism-gn.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cd3e489

Please sign in to comment.