Comments (1)
This has been attempted before many times and it's not trivial to implement because the filenames are generic with nothing that can be relied upon to 100% correctly identify the file in isolation should be JSONC.
You can see the closed attempts https://github.com/github-linguist/linguist/pulls?q=is%3Apr+jsonc+is%3Aclosed+
Have a read through them to see the challenges we face.
I'm going to close this as not planned as this has been investigated before and there isn't a reliable way of doing this.
You can get the files correctly identified in your repo by implementing an override in the .gitattributes
file or add a modeline comment to the .json
files.
The repo you referenced does the former as you can see here.
from linguist.
Related Issues (20)
- Winglang HOT 1
- Markdown: indented code blocks cause text to be marked as invalid. HOT 1
- Add Language: NueJS HOT 2
- Add support for expect (as a form of tcl) HOT 3
- My FastAPI Python project is classified as Jupyter Notebook
- Add support for Hot Soup Processor
- Better code examples for the Genero language HOT 10
- Replace Genero language syntax files with official files HOT 35
- New Language: Jai HOT 3
- TOML Trailing Comma bug HOT 5
- .cdf Files in my Repo Misclassified as Mathematica HOT 2
- Swift Highlighting Broken HOT 11
- Terraform plan
- CMake syntax needs replacing HOT 5
- Recognize `jq` scripts HOT 1
- C# template files incorrectly identified as pascal HOT 6
- Google Apps Script project files mis-identified as Gosu, but they're vanilla JS HOT 1
- Syntax highlighting is broken for some languages HOT 29
- Incorrect Svelte Syntax Highlighting HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linguist.