Skip to content

Conversation

@Bashamega
Copy link
Contributor

This adds KDL to the list of languages. Check https://github.com/bashamega/TypeScript-DOM-lib-generator

Got this idea from mdn/content#14123

@saschanaz
Copy link
Collaborator

Not sure we want to do that. mdn/content is almost 100% about markdown but this repo is about generating types and that's very typescript. We use KDL, sure, but to augment.

@HolgerJeromin
Copy link
Contributor

We use KDL, sure, but to augment.

The KDL files are no generated part, but written by hand. So IMO it would be nice to have that detected.
This change does only put the repo from

TypeScript 86.4%, JavaScript 13.6%

to the far more correct

TypeScript 71.0%, KDL 17.9%, JavaScript 11.1%

@Bashamega
Copy link
Contributor Author

I agree with @HolgerJeromin

Copy link
Collaborator

@saschanaz saschanaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should include .jsonc too then. But doing so would make it like 90% jsonc/kdl. Do we want that? I don't know...

###############################################################################
# linguist support for kdl
###############################################################################
*.kdl linguist-detectable=true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# linguist support for kdl
###############################################################################
*.kdl linguist-detectable=true
*.kdl linguist-language=KDL
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to manually give language at all? This exists to reclassify the language, but the default classification should just work.

@HolgerJeromin
Copy link
Contributor

This should include .jsonc too then. But doing so would make it like 90% jsonc/kdl.

Which would be the truth.

Do we want that? I don't know...

Why not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants