Skip to content

Commit d285834

Browse files
committed
C++23に対応
1 parent 5e53e74 commit d285834

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

crsearch.json/run.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Validator(object):
5252
},
5353
'cpp_version': {
5454
'type': 'string',
55-
'enum': ['98', '03', '11', '14', '17', '20'],
55+
'enum': ['98', '03', '11', '14', '17', '20', '23'],
5656
},
5757
'indexes': {
5858
'type': 'array',
@@ -176,7 +176,7 @@ def get_indexid(self, indexid):
176176
def get_all(self):
177177
return self._ids
178178

179-
_CPP_LATEST_VERSION = '20'
179+
_CPP_LATEST_VERSION = '23'
180180
_CPP_LATEST = 'cpp' + _CPP_LATEST_VERSION
181181
_CPP_RE_RAW = r'cpp\d+[a-zA-Z]?'
182182

@@ -368,6 +368,8 @@ def generate(self, base_dir, file_paths, all_file_paths):
368368
cpp_version = '17'
369369
elif any(map(lambda cpp: cpp == 'cpp20', metas['cpp'])):
370370
cpp_version = '20'
371+
elif any(map(lambda cpp: cpp == 'cpp23', metas['cpp'])):
372+
cpp_version = '23'
371373

372374
# (names[0], cpp_version) が同じものをまとめる
373375
name = names[0]

markdown_to_html

0 commit comments

Comments
 (0)