Skip to content

Commit 6256ac5

Browse files
committed
expand genericCodePatterns to hit yaml/json
1 parent 22e8044 commit 6256ac5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

public/tmpl.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ <h1 class="text-3xl font-bold text-center mb-4">{{.Title}}</h1>
284284
'new|try|catch|if|else|for|while|switch|case|return|throws|throw|override|extends|',
285285
'implements)\\b',
286286
'|[{()}[\\];]|=>|::|->',
287-
'|#include\\s+<[^>]+>|^\\s*#\\w+'
287+
'|#include\\s+<[^>]+>|^\\s*#\\w+',
288+
'|^\\s*[\\w-]+:\\s*.*',
289+
'|"\w+"\\s*:'
288290
].join(''), 'gm');
289291

290292
const genericCodeRegex = new RegExp(genericCodePatterns, 'gm');

0 commit comments

Comments
 (0)