Skip to content

Commit 04e4991

Browse files
authored
enh(cpp) add pair, make_pair, priority_queue as built-ins (#2538)
1 parent 2fafd0e commit 04e4991

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Language Improvements:
2424
- enh(typescript/javascript/coffeescript/livescript) derive ECMAscript keywords from a common foudation (#2518) [Josh Goebel][]
2525
- enh(typescript) add setInterval, setTimeout, clearInterval, clearTimeout (#2514) [Josh Goebel][]
2626
- enh(javascript) add setInterval, setTimeout, clearInterval, clearTimeout (#2514) [Vania Kucher][]
27+
- enh(cpp) add `pair`, `make_pair`, `priority_queue` as built-ins (#2538) [Hankun Lin][]
2728
- fix(javascript) prevent `set` keyword conflicting with setTimeout, etc. (#2514) [Vania Kucher][]
2829
- fix(cpp) Fix highlighting of unterminated raw strings (#2261) [David Benjamin][]
2930
- fix(javascript) `=>` function with nested `()` in params now works (#2502) [Josh Goebel][]
@@ -34,6 +35,7 @@ Language Improvements:
3435
[Peter Plantinga]: https://github.com/pplantinga
3536
[David Benjamin]: https://github.com/davidben
3637
[Vania Kucher]: https://github.com/qWici
38+
[Hankun Lin]: https://github.com/Linhk1606
3739

3840

3941
## Version 10.0.2

src/languages/c-like.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ export default function(hljs) {
106106
'atomic_ullong new throw return ' +
107107
'and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq',
108108
built_in: 'std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream ' +
109-
'auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set ' +
110-
'unordered_map unordered_multiset unordered_multimap array shared_ptr abort terminate abs acos ' +
109+
'auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set ' +
110+
'unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos ' +
111111
'asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp ' +
112112
'fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper ' +
113113
'isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow ' +

0 commit comments

Comments
 (0)