Skip to content

Commit 5237004

Browse files
authored
enh(c): Added typeof and typeof_qual to the list of keywords (#4055)
* Add C23's new typeof and typeof_unqual keywords. * Update CHANGES.md for C23's new keywords.
1 parent e44a6a9 commit 5237004

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CAVEATS / POTENTIALLY BREAKING CHANGES
66

77
Core Grammars:
88

9+
- enc(c) added more C23 keywords [Melkor-1][]
910
- enh(json) added jsonc as an alias [BackupMiles][]
1011
- enh(gml) updated to latest language version (GML v2024.2) [gnysek][]
1112
- enh(c) added more C23 keywords and preprcoessor directives [Eisenwave][]
@@ -63,6 +64,7 @@ Themes:
6364

6465
- Added `1c-light` theme a like in the IDE 1C:Enterprise 8 (for 1c) [Vitaly Barilko][]
6566

67+
[Melkor-1]: https://github.com/Melkor-1
6668
[PeteLomax]: https://github.com/petelomax
6769
[gnysek]: https://github.com/gnysek
6870
[Eisenwave]: https://github.com/Eisenwave

src/languages/c.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ export default function(hljs) {
114114
"restrict",
115115
"return",
116116
"sizeof",
117+
"typeof",
118+
"typeof_unqual",
117119
"struct",
118120
"switch",
119121
"typedef",

0 commit comments

Comments
 (0)