@@ -132,7 +132,7 @@ class Validator(object):
132
132
'properties' : {
133
133
'type' : {
134
134
'type' : 'string' ,
135
- 'enum' : ['class' , 'function' , 'mem_fun' , 'macro' , 'enum' , 'variable' , 'type-alias' , 'article' ],
135
+ 'enum' : ['class' , 'function' , 'mem_fun' , 'macro' , 'enum' , 'variable' , 'type-alias' , 'concept' , ' article' ],
136
136
},
137
137
'key' : {
138
138
'type' : 'array' ,
@@ -249,8 +249,8 @@ def get_meta(self, md):
249
249
@staticmethod
250
250
def identify_type (metas , names , nojump ):
251
251
# type 判別
252
- # metas['id-type']: class, class template, function, function template, enum, variable, type-alias, macro, namespace
253
- # type: "header" / "class" / "function" / "mem_fun" / "macro" / "enum" / "variable"/ "type-alias" / "article"
252
+ # metas['id-type']: class, class template, function, function template, enum, variable, type-alias, concept, macro, namespace
253
+ # type: "header" / "class" / "function" / "mem_fun" / "macro" / "enum" / "variable"/ "type-alias" / "concept"/ " article"
254
254
if nojump :
255
255
return 'meta'
256
256
elif 'id-type' not in metas :
@@ -266,7 +266,7 @@ def identify_type(metas, names, nojump):
266
266
else :
267
267
# それ以外の lang/ の下は article 扱いにする
268
268
return 'article'
269
- elif names [0 ] == 'reference' and len (names ) >= 2 and names [1 ] in {'concepts' , ' container_concepts' , 'node_handle' }:
269
+ elif names [0 ] == 'reference' and len (names ) >= 2 and names [1 ] in {'container_concepts' , 'node_handle' }:
270
270
# 特殊扱い
271
271
return 'article'
272
272
else :
@@ -280,7 +280,7 @@ def identify_type(metas, names, nojump):
280
280
return 'mem_fun'
281
281
else :
282
282
return 'function'
283
- elif id_type in {'enum' , 'variable' , 'type-alias' , 'macro' , 'namespace' }:
283
+ elif id_type in {'enum' , 'variable' , 'type-alias' , 'concept' , ' macro' , 'namespace' }:
284
284
return id_type
285
285
else :
286
286
raise RuntimeError (f'unexpected meta: { metas } ' )
0 commit comments