Refactor Language Support (#132)

* feat: move language utilites out of components and dedup linguist languages

This mot moves all linguist language and codemirror languages into
utility classes.
It also adds syntax highligting for 200+ languages which can use
available parsers.

* Add support for all available 3rd party languages

* Remove some accidental languages

---------

Co-authored-by: Brendan Kellam <bshizzle1234@gmail.com>
This commit is contained in:
Konrad Staniszewski 2024-12-17 11:00:58 -08:00 committed by GitHub
parent 0e9c829cc3
commit 5772468930
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 3557 additions and 1805 deletions

View file

@ -27,14 +27,17 @@
"@codemirror/lang-sass": "^6.0.2", "@codemirror/lang-sass": "^6.0.2",
"@codemirror/lang-sql": "^6.7.1", "@codemirror/lang-sql": "^6.7.1",
"@codemirror/lang-vue": "^0.1.3", "@codemirror/lang-vue": "^0.1.3",
"@codemirror/lang-wast": "^6.0.2",
"@codemirror/lang-xml": "^6.1.0", "@codemirror/lang-xml": "^6.1.0",
"@codemirror/lang-yaml": "^6.1.2", "@codemirror/lang-yaml": "^6.1.2",
"@codemirror/language": "^6.0.0",
"@codemirror/legacy-modes": "^6.4.2", "@codemirror/legacy-modes": "^6.4.2",
"@codemirror/search": "^6.5.6", "@codemirror/search": "^6.5.6",
"@codemirror/state": "^6.4.1", "@codemirror/state": "^6.4.1",
"@codemirror/view": "^6.33.0", "@codemirror/view": "^6.33.0",
"@hookform/resolvers": "^3.9.0", "@hookform/resolvers": "^3.9.0",
"@iconify/react": "^5.1.0", "@iconify/react": "^5.1.0",
"@iizukak/codemirror-lang-wgsl": "^0.3.0",
"@radix-ui/react-dropdown-menu": "^2.1.1", "@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-icons": "^1.3.0", "@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.1.0", "@radix-ui/react-label": "^2.1.0",
@ -46,19 +49,42 @@
"@radix-ui/react-toggle": "^1.1.0", "@radix-ui/react-toggle": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.4", "@radix-ui/react-tooltip": "^1.1.4",
"@replit/codemirror-lang-csharp": "^6.2.0", "@replit/codemirror-lang-csharp": "^6.2.0",
"@replit/codemirror-lang-nix": "^6.0.1",
"@replit/codemirror-lang-solidity": "^6.0.2",
"@replit/codemirror-lang-svelte": "^6.0.0",
"@replit/codemirror-vim": "^6.2.1", "@replit/codemirror-vim": "^6.2.1",
"@shopify/lang-jsonc": "^1.0.0",
"@ssddanbrown/codemirror-lang-twig": "^1.0.0",
"@tanstack/react-query": "^5.53.3", "@tanstack/react-query": "^5.53.3",
"@tanstack/react-table": "^8.20.5", "@tanstack/react-table": "^8.20.5",
"@tanstack/react-virtual": "^3.10.8", "@tanstack/react-virtual": "^3.10.8",
"@uiw/codemirror-themes": "^4.23.6", "@uiw/codemirror-themes": "^4.23.6",
"@uiw/react-codemirror": "^4.23.0", "@uiw/react-codemirror": "^4.23.0",
"@viz-js/lang-dot": "^1.0.4",
"@xiechao/codemirror-lang-handlebars": "^1.0.4",
"class-variance-authority": "^0.7.0", "class-variance-authority": "^0.7.0",
"client-only": "^0.0.1", "client-only": "^0.0.1",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"cm6-graphql": "^0.2.0",
"codemirror": "^5.65.3",
"codemirror-lang-brainfuck": "^0.1.0",
"codemirror-lang-elixir": "^4.0.0",
"codemirror-lang-hcl": "^0.0.0-beta.2",
"codemirror-lang-j": "^0.1.1",
"codemirror-lang-jq": "^1.0.0",
"codemirror-lang-makefile": "^0.1.1",
"codemirror-lang-mermaid": "^0.5.0",
"codemirror-lang-perl": "^0.1.5-beta.6",
"codemirror-lang-prolog": "^0.1.0",
"codemirror-lang-r": "^0.1.1",
"codemirror-lang-sparql": "^2.0.0",
"codemirror-lang-spreadsheet": "^1.3.0",
"codemirror-lang-zig": "^0.1.0",
"embla-carousel-auto-scroll": "^8.3.0", "embla-carousel-auto-scroll": "^8.3.0",
"embla-carousel-react": "^8.3.0", "embla-carousel-react": "^8.3.0",
"escape-string-regexp": "^5.0.0", "escape-string-regexp": "^5.0.0",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"graphql": "^16.9.0",
"http-status-codes": "^2.3.0", "http-status-codes": "^2.3.0",
"lucide-react": "^0.435.0", "lucide-react": "^0.435.0",
"next": "14.2.10", "next": "14.2.10",

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32"><defs><linearGradient id="a" x1="836.63" y1="36.205" x2="843.802" y2="14.48" gradientTransform="translate(525.922 30.249) rotate(180) scale(0.607 0.607)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" stop-opacity="0"/><stop offset="1" stop-color="#fff" stop-opacity="0.275"/></linearGradient></defs><title>file_type_assembly</title><path d="M16,2c-1.246,3.056-2,5.057-3.391,8.022A21.884,21.884,0,0,0,16.2,13.156a14.858,14.858,0,0,1-4-2.283C10.43,14.579,7.646,19.855,2,30c5.186-2.994,9.012-4.648,12.691-4.966V24.2h-.834v-.837h.834V24.2h1.675V22.521H14.691v-.834h-.834V20.013h.834v-.834h1.675v.834H17.2v.837h-.837v-.837H14.691v1.675h1.675v.834H17.2V24.2h-.837v.783c3.98.1,8.006,1.772,13.634,5.021-.863-1.589-1.636-3.021-2.372-4.385a25.526,25.526,0,0,0-4.833-3.333A14.436,14.436,0,0,1,26.65,23.8C19.17,9.872,18.565,8.02,16,2ZM10.511,19.179h1.671v.834h.837v5.021h-.837V22.521H10.511v2.512H9.673V20.013h.837Zm0,.834v1.675h1.671V20.013Zm7.526-.834h.837v.834h.837v.837h.834v-.837h.837v-.834h.837v5.855h-.837V20.85h-.837v.837h-.834V20.85h-.837v4.184h-.837Z" style="fill:#0000bf"/><path d="M23.881,18.642c-6.069-8.237-7.476-14.876-7.832-16.461A175.217,175.217,0,0,0,23.881,18.642Z" style="fill:#fff;fill-opacity:0.165680468082428"/><path d="M16.051,2.12,15.6,3.227c-.159.391-.311.765-.461,1.131s-.3.724-.448,1.077-.3.7-.448,1.053-.3.706-.465,1.066-.329.729-.506,1.111-.362.778-.561,1.193c-.028.057-.061.123-.089.181A21.872,21.872,0,0,0,16.2,13.156a14.879,14.879,0,0,1-3.989-2.276l-.14.287c-.065.133-.144.283-.212.42l-.106.219c-.878,1.793-2.006,3.984-3.524,6.822,3.551-2,7.381-4.887,14.338-2.4-.349-.661-.67-1.28-.971-1.863s-.581-1.128-.841-1.644-.5-1-.725-1.463-.433-.9-.629-1.313-.38-.818-.554-1.2-.339-.754-.5-1.118S18.047,6.9,17.9,6.546s-.291-.709-.434-1.066c-.036-.091-.073-.186-.109-.277C16.949,4.247,16.536,3.258,16.051,2.12Z" style="fill:url(#a)"/></svg>

Before

Width:  |  Height:  |  Size: 1.9 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_c3</title><path d="M29,10.232a2.387,2.387,0,0,0-.318-1.244,2.451,2.451,0,0,0-.936-.879Q22.552,5.241,17.353,2.376A2.642,2.642,0,0,0,14.59,2.4c-1.378.779-8.275,4.565-10.331,5.706A2.287,2.287,0,0,0,3,10.231V21.77a2.4,2.4,0,0,0,.3,1.22,2.434,2.434,0,0,0,.954.9c2.056,1.141,8.954,4.927,10.332,5.706a2.642,2.642,0,0,0,2.763.026q5.19-2.871,10.386-5.733a2.444,2.444,0,0,0,.955-.9,2.4,2.4,0,0,0,.3-1.22V10.232" style="fill:#a9b9cb"/><path d="M28.549,23.171a2.126,2.126,0,0,0,.147-.182,2.4,2.4,0,0,0,.3-1.22V10.232a2.387,2.387,0,0,0-.318-1.244c-.036-.059-.089-.105-.13-.16L16,16Z" style="fill:#8b97a3"/><path d="M28.549,23.171,16,16,3.451,23.171a2.435,2.435,0,0,0,.809.72c2.056,1.141,8.954,4.927,10.332,5.706a2.642,2.642,0,0,0,2.763.026q5.19-2.871,10.386-5.733A2.43,2.43,0,0,0,28.549,23.171Z" style="fill:#7f8b99"/><path d="M19.6,18.02a4.121,4.121,0,1,1-.027-4.087l3.615-2.073A8.309,8.309,0,0,0,7.7,16a8.216,8.216,0,0,0,1.1,4.117A8.319,8.319,0,0,0,23.211,20.1L19.6,18.02" style="fill:#fff"/></svg>

Before

Width:  |  Height:  |  Size: 1 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_cpp3</title><path d="M29,10.232a2.387,2.387,0,0,0-.318-1.244,2.451,2.451,0,0,0-.936-.879Q22.552,5.241,17.353,2.376A2.642,2.642,0,0,0,14.59,2.4c-1.378.779-8.275,4.565-10.331,5.706A2.287,2.287,0,0,0,3,10.231V21.77a2.4,2.4,0,0,0,.3,1.22,2.434,2.434,0,0,0,.954.9c2.056,1.141,8.954,4.927,10.332,5.706a2.642,2.642,0,0,0,2.763.026q5.19-2.871,10.386-5.733a2.444,2.444,0,0,0,.955-.9,2.4,2.4,0,0,0,.3-1.22V10.232" style="fill:#659ad2"/><path d="M28.549,23.171a2.126,2.126,0,0,0,.147-.182,2.4,2.4,0,0,0,.3-1.22V10.232a2.387,2.387,0,0,0-.318-1.244c-.036-.059-.089-.105-.13-.16L16,16Z" style="fill:#00599c"/><path d="M28.549,23.171,16,16,3.451,23.171a2.435,2.435,0,0,0,.809.72c2.056,1.141,8.954,4.927,10.332,5.706a2.642,2.642,0,0,0,2.763.026q5.19-2.871,10.386-5.733A2.43,2.43,0,0,0,28.549,23.171Z" style="fill:#004482"/><path d="M19.6,18.02a4.121,4.121,0,1,1-.027-4.087l3.615-2.073A8.309,8.309,0,0,0,7.7,16a8.216,8.216,0,0,0,1.1,4.117A8.319,8.319,0,0,0,23.211,20.1L19.6,18.02" style="fill:#fff"/><polygon points="24.076 15.538 23.15 15.538 23.15 14.617 22.225 14.617 22.225 15.538 21.299 15.538 21.299 16.461 22.225 16.461 22.225 17.381 23.15 17.381 23.15 16.461 24.076 16.461 24.076 15.538" style="fill:#fff"/><polygon points="27.549 15.538 26.623 15.538 26.623 14.617 25.697 14.617 25.697 15.538 24.771 15.538 24.771 16.461 25.697 16.461 25.697 17.381 26.623 17.381 26.623 16.461 27.549 16.461 27.549 15.538" style="fill:#fff"/></svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_csharp2</title><path d="M29,10.232a2.387,2.387,0,0,0-.318-1.244,2.451,2.451,0,0,0-.936-.879Q22.552,5.241,17.353,2.376A2.642,2.642,0,0,0,14.59,2.4c-1.378.779-8.275,4.565-10.331,5.706A2.287,2.287,0,0,0,3,10.231V21.77a2.4,2.4,0,0,0,.3,1.22,2.434,2.434,0,0,0,.954.9c2.056,1.141,8.954,4.927,10.332,5.706a2.642,2.642,0,0,0,2.763.026q5.19-2.871,10.386-5.733a2.444,2.444,0,0,0,.955-.9,2.4,2.4,0,0,0,.3-1.22V10.232" style="fill:#4e994a"/><path d="M28.549,23.171a2.126,2.126,0,0,0,.147-.182,2.4,2.4,0,0,0,.3-1.22V10.232a2.387,2.387,0,0,0-.318-1.244c-.036-.059-.089-.105-.13-.16L16,16Z" style="fill:#358230"/><path d="M28.549,23.171,16,16,3.451,23.171a2.435,2.435,0,0,0,.809.72c2.056,1.141,8.954,4.927,10.332,5.706a2.642,2.642,0,0,0,2.763.026q5.19-2.871,10.386-5.733A2.43,2.43,0,0,0,28.549,23.171Z" style="fill:#1a7515"/><path d="M19.6,18.02a4.121,4.121,0,1,1-.027-4.087l3.615-2.073A8.309,8.309,0,0,0,7.7,16a8.216,8.216,0,0,0,1.1,4.117A8.319,8.319,0,0,0,23.211,20.1L19.6,18.02" style="fill:#fff"/><path d="M27.67,15.271V14.033H26.663V13.027H25.424v1.006H23.916V13.027H22.677v1.006H21.669v1.238h1.006v1.513H21.669v1.237h1.006v1.006h1.239V18.021h1.509v1.006h1.239V18.021h1.006V16.784h-1V15.271Zm-2.246,1.513H23.916V15.271h1.508Z" style="fill:#fff"/></svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_css</title><polygon points="5.902 27.201 3.656 2 28.344 2 26.095 27.197 15.985 30 5.902 27.201" style="fill:#1572b6"/><polygon points="16 27.858 24.17 25.593 26.092 4.061 16 4.061 16 27.858" style="fill:#33a9dc"/><polygon points="16 13.191 20.09 13.191 20.372 10.026 16 10.026 16 6.935 16.011 6.935 23.75 6.935 23.676 7.764 22.917 16.282 16 16.282 16 13.191" style="fill:#fff"/><polygon points="16.019 21.218 16.005 21.222 12.563 20.292 12.343 17.827 10.67 17.827 9.24 17.827 9.673 22.68 16.004 24.438 16.019 24.434 16.019 21.218" style="fill:#ebebeb"/><polygon points="19.827 16.151 19.455 20.29 16.008 21.22 16.008 24.436 22.344 22.68 22.391 22.158 22.928 16.151 19.827 16.151" style="fill:#fff"/><polygon points="16.011 6.935 16.011 8.855 16.011 10.018 16.011 10.026 8.555 10.026 8.555 10.026 8.545 10.026 8.483 9.331 8.342 7.764 8.268 6.935 16.011 6.935" style="fill:#ebebeb"/><polygon points="16 13.191 16 15.111 16 16.274 16 16.282 12.611 16.282 12.611 16.282 12.601 16.282 12.539 15.587 12.399 14.02 12.325 13.191 16 13.191" style="fill:#ebebeb"/></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_dartlang</title><path d="M16.739,2.037a1.314,1.314,0,0,0-.916.377l-.013.01L7.22,7.389l8.566,8.566v.006l10.3,10.3,1.963-3.536L20.968,5.728l-3.3-3.3a1.307,1.307,0,0,0-.927-.388Z" style="fill:#66c3fa"/><path d="M7.25,7.35,2.288,15.931l-.01.013a1.322,1.322,0,0,0-.378.919,1.3,1.3,0,0,0,.387.924L6.4,21.9l16.084,6.327,3.636-2.02-.1-.1-.025,0-10.083-10.1H15.9L7.25,7.35Z" style="fill:#215896"/><path d="M7.192,7.362l8.764,8.773h.013l10.087,10.1,3.839-.732L29.9,14.14l-4.054-3.973a6.521,6.521,0,0,0-3.624-1.616l0-.044L7.192,7.362Z" style="fill:#235997"/><path d="M7.256,7.411l8.768,8.768v.013L26.116,26.284l-.734,3.839H14.022l-3.971-4.056a6.522,6.522,0,0,1-1.614-3.625l-.044,0L7.256,7.411Z" style="fill:#58b6f0"/></svg>

Before

Width:  |  Height:  |  Size: 789 B

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 254.5 225"><title>file_type_go</title><path d="M-46.926,89c-.621,0-.777-.311-.466-.777l3.262-4.194a2.225,2.225,0,0,1,1.708-.777H13.026c.621,0,.777.466.466.932l-2.64,4.038a2.367,2.367,0,0,1-1.553.932Z" style="fill:#00acd7"/><path d="M-70.379,103.285c-.621,0-.777-.311-.466-.777l3.262-4.194a2.225,2.225,0,0,1,1.708-.777H4.95a.714.714,0,0,1,.777.932L4.484,102.2a1.358,1.358,0,0,1-1.4.932Z" style="fill:#00acd7"/><path d="M-32.792,117.574c-.621,0-.777-.466-.466-.932l2.174-3.883a2.06,2.06,0,0,1,1.553-.932H1.533c.621,0,.932.466.932,1.087l-.311,3.728a1.167,1.167,0,0,1-1.087,1.087Z" style="fill:#00acd7"/><path d="M128.426,86.2c-9.785,2.485-16.464,4.349-26.093,6.834-2.33.621-2.485.777-4.5-1.553-2.33-2.64-4.038-4.349-7.3-5.9-9.785-4.815-19.259-3.417-28.112,2.33-10.561,6.834-16,16.929-15.842,29.51.155,12.425,8.7,22.676,20.968,24.385,10.561,1.4,19.414-2.33,26.4-10.251,1.4-1.708,2.64-3.572,4.194-5.747H68.163c-3.262,0-4.038-2.019-2.951-4.659,2.019-4.815,5.747-12.891,7.921-16.929a4.194,4.194,0,0,1,3.883-2.485h56.535c-.311,4.194-.311,8.387-.932,12.581a66.239,66.239,0,0,1-12.736,30.442C108.7,159.51,94.1,168.673,75.618,171.158c-15.221,2.019-29.355-.932-41.78-10.251a48.785,48.785,0,0,1-19.725-34.48c-2.019-16.929,2.951-32.15,13.2-45.508C38.342,66.475,52.942,57.312,70.8,54.05c14.6-2.64,28.578-.932,41.159,7.61a48.686,48.686,0,0,1,18.017,21.9C130.911,84.958,130.289,85.735,128.426,86.2Z" style="fill:#00acd7"/><path d="M179.835,172.09c-14.134-.311-27.025-4.349-37.9-13.668a48.711,48.711,0,0,1-16.774-29.976c-2.8-17.551,2.019-33.082,12.581-46.905,11.338-14.91,25.006-22.676,43.488-25.938,15.842-2.8,30.753-1.243,44.265,7.921,12.27,8.387,19.88,19.725,21.9,34.635,2.64,20.968-3.417,38.052-17.861,52.652a71.17,71.17,0,0,1-37.276,19.88C188.067,171.469,183.874,171.624,179.835,172.09ZM216.8,109.343a44.7,44.7,0,0,0-.466-5.125c-2.8-15.376-16.929-24.074-31.684-20.657-14.444,3.262-23.763,12.425-27.18,27.025a25.579,25.579,0,0,0,14.289,29.355c8.542,3.728,17.085,3.262,25.317-.932C209.345,132.64,216.024,122.7,216.8,109.343Z" style="fill:#00acd7"/></svg>

Before

Width:  |  Height:  |  Size: 2 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_haskell</title><polygon points="2 25.882 8.588 16 2 6.118 6.941 6.118 13.529 16 6.941 25.882 2 25.882" style="fill:#453a62"/><polygon points="8.588 25.882 15.177 16 8.588 6.118 13.529 6.118 26.706 25.882 21.765 25.882 17.647 19.706 13.529 25.882 8.588 25.882" style="fill:#5e5086"/><polygon points="24.51 20.118 22.314 16.824 30 16.823 30 20.118 24.51 20.118" style="fill:#8f4e8b"/><polygon points="21.216 15.177 19.02 11.883 30 11.882 30 15.177 21.216 15.177" style="fill:#8f4e8b"/></svg>

Before

Width:  |  Height:  |  Size: 566 B

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_html</title><polygon points="5.902 27.201 3.655 2 28.345 2 26.095 27.197 15.985 30 5.902 27.201" style="fill:#e44f26"/><polygon points="16 27.858 24.17 25.593 26.092 4.061 16 4.061 16 27.858" style="fill:#f1662a"/><polygon points="16 13.407 11.91 13.407 11.628 10.242 16 10.242 16 7.151 15.989 7.151 8.25 7.151 8.324 7.981 9.083 16.498 16 16.498 16 13.407" style="fill:#ebebeb"/><polygon points="16 21.434 15.986 21.438 12.544 20.509 12.324 18.044 10.651 18.044 9.221 18.044 9.654 22.896 15.986 24.654 16 24.65 16 21.434" style="fill:#ebebeb"/><polygon points="15.989 13.407 15.989 16.498 19.795 16.498 19.437 20.507 15.989 21.437 15.989 24.653 22.326 22.896 22.372 22.374 23.098 14.237 23.174 13.407 22.341 13.407 15.989 13.407" style="fill:#fff"/><polygon points="15.989 7.151 15.989 9.071 15.989 10.235 15.989 10.242 23.445 10.242 23.445 10.242 23.455 10.242 23.517 9.548 23.658 7.981 23.732 7.151 15.989 7.151" style="fill:#fff"/></svg>

Before

Width:  |  Height:  |  Size: 1,017 B

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_java</title><path d="M12.325,23.654s-1.07.622.761.833a16.023,16.023,0,0,0,5.8-.246,10.088,10.088,0,0,0,1.541.752c-5.481,2.349-12.405-.136-8.1-1.339" style="fill:#5382a1"/><path d="M11.656,20.588s-1.2.888.633,1.078a22.618,22.618,0,0,0,7.481-.359,3.32,3.32,0,0,0,1.152.7c-6.627,1.938-14.009.153-9.266-1.421" style="fill:#5382a1"/><path d="M17.3,15.388a2.051,2.051,0,0,1-.355,2.954s3.429-1.77,1.854-3.987c-1.471-2.067-2.6-3.095,3.508-6.636,0,0-9.586,2.394-5.007,7.669" style="fill:#5382a1"/><path d="M24.552,25.921s.792.652-.872,1.157c-3.164.958-13.168,1.248-15.948.038-1-.435.874-1.038,1.464-1.164a3.8,3.8,0,0,1,.966-.108c-1.111-.783-7.181,1.537-3.083,2.2,11.176,1.812,20.372-.816,17.473-2.124" style="fill:#5382a1"/><path d="M12.84,17.412s-5.089,1.209-1.8,1.648a38.225,38.225,0,0,0,6.731-.072c2.106-.178,4.221-.555,4.221-.555a8.934,8.934,0,0,0-1.28.685c-5.168,1.359-15.151.727-12.277-.663a9.629,9.629,0,0,1,4.407-1.042" style="fill:#5382a1"/><path d="M21.969,22.515c5.253-2.73,2.824-5.353,1.129-5a3.932,3.932,0,0,0-.6.161.957.957,0,0,1,.449-.346c3.354-1.179,5.933,3.478-1.083,5.322a.458.458,0,0,0,.106-.138" style="fill:#5382a1"/><path d="M18.8,2s2.909,2.91-2.759,7.386c-4.546,3.59-1.037,5.637,0,7.975-2.653-2.394-4.6-4.5-3.294-6.463C14.664,8.019,19.976,6.623,18.8,2" style="fill:#5382a1"/><path d="M13.356,29.912c5.042.323,12.786-.179,12.969-2.565,0,0-.353.9-4.167,1.623a41.458,41.458,0,0,1-12.76.2s.645.533,3.959.746" style="fill:#5382a1"/></svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_js_official</title><rect x="2" y="2" width="28" height="28" style="fill:#f5de19"/><path d="M20.809,23.875a2.866,2.866,0,0,0,2.6,1.6c1.09,0,1.787-.545,1.787-1.3,0-.9-.716-1.222-1.916-1.747l-.658-.282c-1.9-.809-3.16-1.822-3.16-3.964,0-1.973,1.5-3.476,3.853-3.476a3.889,3.889,0,0,1,3.742,2.107L25,18.128A1.789,1.789,0,0,0,23.311,17a1.145,1.145,0,0,0-1.259,1.128c0,.789.489,1.109,1.618,1.6l.658.282c2.236.959,3.5,1.936,3.5,4.133,0,2.369-1.861,3.667-4.36,3.667a5.055,5.055,0,0,1-4.795-2.691Zm-9.295.228c.413.733.789,1.353,1.693,1.353.864,0,1.41-.338,1.41-1.653V14.856h2.631v8.982c0,2.724-1.6,3.964-3.929,3.964a4.085,4.085,0,0,1-3.947-2.4Z"/></svg>

Before

Width:  |  Height:  |  Size: 719 B

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_json</title><path d="M4.014,14.976a2.51,2.51,0,0,0,1.567-.518A2.377,2.377,0,0,0,6.386,13.1,15.261,15.261,0,0,0,6.6,10.156q.012-2.085.075-2.747a5.236,5.236,0,0,1,.418-1.686,3.025,3.025,0,0,1,.755-1.018A3.046,3.046,0,0,1,9,4.125,6.762,6.762,0,0,1,10.544,4h.7V5.96h-.387a2.338,2.338,0,0,0-1.723.468A3.4,3.4,0,0,0,8.709,8.52a36.054,36.054,0,0,1-.137,4.133,4.734,4.734,0,0,1-.768,2.06A4.567,4.567,0,0,1,6.1,16a3.809,3.809,0,0,1,1.992,1.754,8.861,8.861,0,0,1,.618,3.865q0,2.435.05,2.9A1.755,1.755,0,0,0,9.264,25.7a2.639,2.639,0,0,0,1.592.337h.387V28h-.7a5.655,5.655,0,0,1-1.773-.2,2.97,2.97,0,0,1-1.324-.93,3.353,3.353,0,0,1-.681-1.63A24.175,24.175,0,0,1,6.6,22.006,16.469,16.469,0,0,0,6.386,18.9a2.408,2.408,0,0,0-.805-1.361,2.489,2.489,0,0,0-1.567-.524Z" style="fill:#f5de19"/><path d="M27.986,17.011a2.489,2.489,0,0,0-1.567.524,2.408,2.408,0,0,0-.805,1.361,16.469,16.469,0,0,0-.212,3.109,24.175,24.175,0,0,1-.169,3.234,3.353,3.353,0,0,1-.681,1.63,2.97,2.97,0,0,1-1.324.93,5.655,5.655,0,0,1-1.773.2h-.7V26.04h.387a2.639,2.639,0,0,0,1.592-.337,1.755,1.755,0,0,0,.506-1.186q.05-.462.05-2.9a8.861,8.861,0,0,1,.618-3.865A3.809,3.809,0,0,1,25.9,16a4.567,4.567,0,0,1-1.7-1.286,4.734,4.734,0,0,1-.768-2.06,36.054,36.054,0,0,1-.137-4.133,3.4,3.4,0,0,0-.425-2.092,2.338,2.338,0,0,0-1.723-.468h-.387V4h.7A6.762,6.762,0,0,1,23,4.125a3.046,3.046,0,0,1,1.149.581,3.025,3.025,0,0,1,.755,1.018,5.236,5.236,0,0,1,.418,1.686q.062.662.075,2.747a15.261,15.261,0,0,0,.212,2.947,2.377,2.377,0,0,0,.805,1.355,2.51,2.51,0,0,0,1.567.518Z" style="fill:#f5de19"/></svg>

Before

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_julia</title><circle cx="8.309" cy="22.592" r="5.86" style="fill:#d5635c"/><path d="M8.309,28.9a6.309,6.309,0,1,1,6.309-6.309A6.316,6.316,0,0,1,8.309,28.9Zm0-11.719a5.41,5.41,0,1,0,5.41,5.41A5.416,5.416,0,0,0,8.309,17.182Z" style="fill:#cb3c33"/><circle cx="16" cy="9.408" r="5.86" style="fill:#60ad51"/><path d="M16,15.717a6.309,6.309,0,1,1,6.309-6.309A6.316,6.316,0,0,1,16,15.717ZM16,4a5.41,5.41,0,1,0,5.41,5.41A5.416,5.416,0,0,0,16,4Z" style="fill:#389826"/><circle cx="23.691" cy="22.592" r="5.86" style="fill:#aa79c1"/><path d="M23.691,28.9A6.309,6.309,0,1,1,30,22.592,6.316,6.316,0,0,1,23.691,28.9Zm0-11.719a5.41,5.41,0,1,0,5.41,5.41A5.416,5.416,0,0,0,23.691,17.182Z" style="fill:#9558b2"/></svg>

Before

Width:  |  Height:  |  Size: 779 B

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32"><defs><linearGradient id="a" x1="311.336" y1="1452.064" x2="283.342" y2="1480.058" gradientTransform="translate(-281.4 -1450)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#e44857"/><stop offset="0.47" stop-color="#9d4b9d"/><stop offset="1" stop-color="#6d5faa"/></linearGradient></defs><title>file_type_kotlin</title><path d="M30,30H2V2H30L16,16Z" style="fill:url(#a)"/></svg>

Before

Width:  |  Height:  |  Size: 495 B

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_lua</title><path d="M16.5,30l-.011-.321c.4-.014.8-.045,1.19-.094l.039.319C17.312,29.952,16.9,29.984,16.5,30Zm-1.222-.011c-.4-.021-.814-.061-1.216-.118l.045-.318c.393.055.793.094,1.188.115ZM18.92,29.7l-.067-.314c.387-.083.776-.184,1.155-.3l.094.307C19.714,29.511,19.316,29.615,18.92,29.7Zm-6.063-.053c-.4-.091-.791-.2-1.177-.326l.1-.306c.377.122.764.23,1.15.319Zm8.4-.665-.121-.3c.364-.148.728-.314,1.08-.493l.006,0,.145.286,0,0C22,28.661,21.626,28.831,21.253,28.982Zm-10.718-.088c-.374-.158-.745-.335-1.1-.524l.15-.284c.35.186.713.358,1.078.512Zm12.893-1.021-.17-.273c.337-.21.668-.437.984-.675l.193.257C24.111,27.425,23.772,27.658,23.428,27.873ZM8.379,27.751c-.341-.22-.676-.459-1-.708l.2-.253c.312.243.64.476.972.691Zm17-1.346-.215-.239c.294-.265.58-.546.851-.836l.235.219C25.972,25.846,25.679,26.134,25.378,26.4ZM6.454,26.252c-.3-.276-.585-.569-.856-.87l.239-.215c.265.294.547.58.836.85ZM27.041,24.62l-.253-.2c.244-.312.476-.639.692-.972l.27.175C27.529,23.966,27.29,24.3,27.041,24.62ZM4.82,24.439c-.244-.324-.476-.662-.692-1.007l.272-.17c.21.337.438.668.676.984Zm23.547-1.867-.284-.151c.186-.35.358-.713.513-1.078l.3.125C28.735,21.843,28.558,22.214,28.368,22.572Zm-24.841-.2-.006-.012c-.183-.359-.352-.728-.5-1.1l.3-.121c.147.362.312.724.491,1.074l.006.012ZM29.32,20.325l-.306-.1c.122-.377.23-.764.319-1.15l.313.072C29.555,19.543,29.446,19.939,29.32,20.325ZM2.608,20.107c-.12-.388-.223-.786-.308-1.182l.314-.067c.083.387.184.776.3,1.155ZM29.87,17.946l-.318-.045c.056-.393.094-.793.115-1.188l.321.017C29.967,17.135,29.927,17.544,29.87,17.946ZM2.1,17.72c-.05-.4-.082-.812-.1-1.218l.321-.011c.014.4.046.8.094,1.19Zm27.582-2.2c-.014-.4-.045-.8-.093-1.19l.319-.039c.049.4.082.813.1,1.218ZM2.331,15.3,2.01,15.28c.021-.405.061-.814.117-1.216l.318.045C2.39,14.5,2.352,14.9,2.331,15.3Zm27.057-2.144c-.083-.387-.184-.776-.3-1.155L29.4,11.9c.119.388.223.786.307,1.183ZM2.663,12.934l-.313-.072c.091-.4.2-.791.326-1.177l.306.1C2.859,12.161,2.752,12.548,2.663,12.934Zm26.026-2.062c-.149-.366-.315-.732-.5-1.086l.286-.146c.185.363.355.736.507,1.111ZM3.4,10.665l-.3-.125c.158-.374.334-.745.524-1.1l.284.15C3.724,9.937,3.552,10.3,3.4,10.665ZM4.513,8.557l-.27-.174c.22-.341.458-.676.707-1l.254.2C4.961,7.9,4.728,8.224,4.513,8.557ZM5.977,6.676l-.235-.219c.276-.3.569-.585.87-.857l.215.239C6.533,6.1,6.247,6.386,5.977,6.676Zm1.77-1.6-.193-.257c.323-.244.662-.477,1.007-.692l.17.272C8.394,4.614,8.063,4.841,7.747,5.079Zm15.705-.558-.018-.012.175-.27.018.011Zm-1.047-.616c-.35-.186-.713-.358-1.078-.512l.125-.3c.374.158.745.334,1.1.524ZM9.769,3.815l-.146-.286.018-.009c.356-.181.724-.349,1.093-.5l.121.3c-.361.147-.72.311-1.068.488Zm10.44-.838c-.377-.122-.764-.229-1.151-.317l.072-.313c.4.091.792.2,1.178.325Zm-8.229-.06-.094-.307c.388-.119.786-.223,1.182-.308l.067.314C12.747,2.7,12.359,2.8,11.98,2.917Zm5.9-.473c-.393-.055-.793-.092-1.188-.113l.016-.321c.405.021.814.059,1.216.115Zm-3.572-.026-.04-.319c.4-.05.812-.083,1.218-.1l.012.321C15.106,2.337,14.705,2.369,14.312,2.418Z" style="fill:gray"/><circle cx="16" cy="15.998" r="10.708" style="fill:navy"/><circle cx="20.435" cy="11.562" r="3.136" style="fill:#fff"/><circle cx="26.708" cy="5.29" r="3.137" style="fill:navy"/><path d="M13.1,21.352v-.79H9.629V14.326h-.9v7.026H13.1" style="fill:#fff"/><path d="M17.916,21.352V16.3h-.8v2.785c0,1.031-.54,1.706-1.378,1.706A.95.95,0,0,1,14.7,19.8V16.3h-.8v3.817c0,.838.626,1.378,1.609,1.378a1.863,1.863,0,0,0,1.687-.925v.781h.723" style="fill:#fff"/><path d="M23.791,21.333v-.607a.664.664,0,0,1-.173.019c-.279,0-.434-.145-.434-.4V17.536c0-.9-.655-1.378-1.9-1.378-1.224,0-1.976.472-2.024,1.638h.81c.067-.617.434-.9,1.185-.9.723,0,1.128.27,1.128.752v.212c0,.337-.2.482-.838.559a5.763,5.763,0,0,0-1.619.308,1.327,1.327,0,0,0-.887,1.311c0,.916.636,1.455,1.658,1.455a2.363,2.363,0,0,0,1.715-.742.855.855,0,0,0,.829.665,1.967,1.967,0,0,0,.549-.087m-1.407-1.725a1.366,1.366,0,0,1-1.513,1.185c-.626,0-.993-.222-.993-.771,0-.53.357-.761,1.214-.887a4,4,0,0,0,1.291-.279v.752" style="fill:#fff"/></svg>

Before

Width:  |  Height:  |  Size: 4 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_markdown</title><rect x="2.5" y="7.955" width="27" height="16.091" style="fill:none;stroke:#755838"/><polygon points="5.909 20.636 5.909 11.364 8.636 11.364 11.364 14.773 14.091 11.364 16.818 11.364 16.818 20.636 14.091 20.636 14.091 15.318 11.364 18.727 8.636 15.318 8.636 20.636 5.909 20.636" style="fill:#755838"/><polygon points="22.955 20.636 18.864 16.136 21.591 16.136 21.591 11.364 24.318 11.364 24.318 16.136 27.045 16.136 22.955 20.636" style="fill:#755838"/></svg>

Before

Width:  |  Height:  |  Size: 552 B

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32"><defs><linearGradient id="a" x1="16.803" y1="16.631" x2="15.013" y2="22.411" gradientTransform="matrix(1, 0, 0, -1, 0, 32)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#512"/><stop offset="0.23" stop-color="#523"/><stop offset="0.36" stop-color="#534"/><stop offset="0.51" stop-color="#645"/><stop offset="0.66" stop-color="#568"/><stop offset="0.84" stop-color="#29d"/></linearGradient><linearGradient id="b" x1="29.71" y1="18.983" x2="11.71" y2="14.563" gradientUnits="userSpaceOnUse"><stop offset="0.081" stop-color="#c33"/><stop offset="0.189" stop-color="#de5239"/><stop offset="0.313" stop-color="#f06e3e"/><stop offset="0.421" stop-color="#fa8042"/><stop offset="0.5" stop-color="#fe8643"/><stop offset="0.58" stop-color="#fa7f42"/><stop offset="0.696" stop-color="#ef6c3e"/><stop offset="0.833" stop-color="#dc4c37"/><stop offset="0.916" stop-color="#cf3633"/></linearGradient></defs><title>file_type_matlab</title><path d="M2,17.55l7.97-3.22a20.7,20.7,0,0,1,2.72-2.95c.66-.35,1.9-.16,4.17-2.98,2.2-2.75,2.9-5.1,3.93-5.1,1.63,0,2.83,3.52,4.65,8.85A115.629,115.629,0,0,0,30,24.12c-1.9-1.77-3.52-3.68-5.37-3.63-1.72.04-3.63,2.08-5.72,4.7-1.66,2.1-3.86,3.54-4.72,3.51,0,0-2.22-6.28-4.08-7.3a2.641,2.641,0,0,0-2.39.2L2,17.54Z" style="fill:#49d"/><path d="M19.8,4.02c-.67.9-1.48,2.55-2.94,4.38-2.27,2.82-3.5,2.63-4.17,2.98a19.674,19.674,0,0,0-2.72,2.95l3.3,2.41c2.8-3.82,4.3-7.96,5.47-10.64A13.579,13.579,0,0,1,19.8,4.02Z" style="fill:url(#a)"/><path d="M20.8,3.3c-2.18,0-3.67,11.48-11.72,17.89,2.26-.37,4.22,5.24,5.12,7.51,4-.68,7.2-8.33,10.43-8.21,1.85.07,3.47,1.86,5.37,3.63C25.66,15,23.63,3.3,20.8,3.3Z" style="fill:url(#b)"/></svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_objectivec</title><path d="M11.29,15.976a8.892,8.892,0,0,0,1.039,4.557,4.818,4.818,0,0,0,5.579,2.13,3.789,3.789,0,0,0,2.734-3.181c.095-.535.1-.54.1-.54,1.537.222,4.014.582,5.55.8l-.1.389A9.958,9.958,0,0,1,23.8,24.9a8.35,8.35,0,0,1-4.747,2.378,12.925,12.925,0,0,1-7.322-.725,8.98,8.98,0,0,1-5.106-5.524A14.353,14.353,0,0,1,6.642,10.9a9.323,9.323,0,0,1,7.929-6.24,11.812,11.812,0,0,1,5.9.491,8.467,8.467,0,0,1,5.456,6.1c.083.311.1.369.1.369-1.709.311-3.821.705-5.518,1.075C20.186,11,19.387,9.666,17.678,9.25a4.656,4.656,0,0,0-5.853,3.158,9.28,9.28,0,0,0-.341,1.273A10.89,10.89,0,0,0,11.29,15.976Z" style="fill:#c2c2c2"/><polygon points="2.033 30 2.033 2 7.967 2 7.967 4.227 4.723 4.227 4.723 27.773 7.967 27.773 7.967 30 2.033 30" style="fill:#c2c2c2"/><polygon points="29.967 29.999 24.033 29.999 24.033 27.771 27.277 27.771 27.277 4.226 24.033 4.226 24.033 1.999 29.967 1.999 29.967 29.999" style="fill:#c2c2c2"/></svg>

Before

Width:  |  Height:  |  Size: 996 B

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 5 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 6.1 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_php3</title><path d="M7.6,13.791a2.352,2.352,0,0,1,1.745.483,1.916,1.916,0,0,1,.207,1.66,2.78,2.78,0,0,1-.918,1.748,3.375,3.375,0,0,1-2.07.529h-1.4L6.024,13.8ZM2,22.677H4.3l.545-2.8H6.812A7.049,7.049,0,0,0,8.956,19.6a4.06,4.06,0,0,0,1.53-.918A4.585,4.585,0,0,0,11.93,16.1a3.288,3.288,0,0,0-.55-2.922A3.671,3.671,0,0,0,8.47,12.129H4.057Z" style="fill:#8993be"/><path d="M13.617,9.323H15.9l-.553,2.8h2.031a3.956,3.956,0,0,1,2.645.669,2.213,2.213,0,0,1,.436,2.167l-.954,4.909H17.195l.908-4.667a1.267,1.267,0,0,0-.114-1.086,1.6,1.6,0,0,0-1.144-.286H15.022l-1.175,6.044H11.559Z" style="fill:#8993be"/><path d="M25.539,13.791a2.352,2.352,0,0,1,1.745.483,1.916,1.916,0,0,1,.207,1.66,2.78,2.78,0,0,1-.918,1.748,3.375,3.375,0,0,1-2.074.529H23.1l.858-4.416Zm-5.6,8.886h2.3l.545-2.8h1.968A7.049,7.049,0,0,0,26.9,19.6a4.06,4.06,0,0,0,1.53-.918A4.585,4.585,0,0,0,29.869,16.1a3.288,3.288,0,0,0-.55-2.922,3.671,3.671,0,0,0-2.909-1.046h-4.42Z" style="fill:#8993be"/></svg>

Before

Width:  |  Height:  |  Size: 1 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32"><defs><linearGradient id="a" x1="23.325" y1="-118.543" x2="7.26" y2="-104.193" gradientTransform="matrix(1, 0, 0, -1, 0, -96)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#5391fe"/><stop offset="1" stop-color="#3e6dbf"/></linearGradient><linearGradient id="b" x1="7.1" y1="-104.002" x2="23.001" y2="-118.292" xlink:href="#a"/></defs><title>file_type_powershell</title><path d="M3.174,26.589a1.154,1.154,0,0,1-.928-.423,1.234,1.234,0,0,1-.21-1.052L6.233,6.78A1.8,1.8,0,0,1,7.914,5.41H28.826a1.157,1.157,0,0,1,.928.423,1.235,1.235,0,0,1,.21,1.052l-4.2,18.335a1.8,1.8,0,0,1-1.681,1.37H3.174Z" style="fill-rule:evenodd;fill:url(#a)"/><path d="M7.914,5.646H28.826a.913.913,0,0,1,.908,1.187l-4.2,18.334a1.575,1.575,0,0,1-1.451,1.187H3.174a.913.913,0,0,1-.908-1.187l4.2-18.334A1.574,1.574,0,0,1,7.914,5.646Z" style="fill-rule:evenodd;fill:url(#b)"/><path d="M16.04,21.544h5.086a1.118,1.118,0,0,1,0,2.234H16.04a1.118,1.118,0,0,1,0-2.234Z" style="fill:#2c5591;fill-rule:evenodd"/><path d="M19.339,16.578a1.762,1.762,0,0,1-.591.6L9.309,23.953a1.224,1.224,0,0,1-1.438-1.977l8.512-6.164v-.126L11.035,10a1.224,1.224,0,0,1,1.782-1.672l6.418,6.827A1.166,1.166,0,0,1,19.339,16.578Z" style="fill:#2c5591;fill-rule:evenodd"/><path d="M19.1,16.342a1.749,1.749,0,0,1-.59.6L9.074,23.718a1.225,1.225,0,0,1-1.439-1.977l8.513-6.164V15.45L10.8,9.761a1.224,1.224,0,0,1,1.783-1.672L19,14.916A1.162,1.162,0,0,1,19.1,16.342Z" style="fill:#fff;fill-rule:evenodd"/><path d="M15.9,21.412h5.086a1.059,1.059,0,1,1,0,2.118H15.9a1.059,1.059,0,1,1,0-2.118Z" style="fill:#fff;fill-rule:evenodd"/></svg>

Before

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32"><defs><linearGradient id="a" x1="-133.268" y1="-202.91" x2="-133.198" y2="-202.84" gradientTransform="translate(25243.061 38519.17) scale(189.38 189.81)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#387eb8"/><stop offset="1" stop-color="#366994"/></linearGradient><linearGradient id="b" x1="-133.575" y1="-203.203" x2="-133.495" y2="-203.133" gradientTransform="translate(25309.061 38583.42) scale(189.38 189.81)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffe052"/><stop offset="1" stop-color="#ffc331"/></linearGradient></defs><title>file_type_python</title><path d="M15.885,2.1c-7.1,0-6.651,3.07-6.651,3.07V8.36h6.752v1H6.545S2,8.8,2,16.005s4.013,6.912,4.013,6.912H8.33V19.556s-.13-4.013,3.9-4.013h6.762s3.772.06,3.772-3.652V5.8s.572-3.712-6.842-3.712h0ZM12.153,4.237a1.214,1.214,0,1,1-1.183,1.244v-.02a1.214,1.214,0,0,1,1.214-1.214h0Z" style="fill:url(#a)"/><path d="M16.085,29.91c7.1,0,6.651-3.08,6.651-3.08V23.65H15.985v-1h9.47S30,23.158,30,15.995s-4.013-6.912-4.013-6.912H23.64V12.4s.13,4.013-3.9,4.013H12.975S9.2,16.356,9.2,20.068V26.2s-.572,3.712,6.842,3.712h.04Zm3.732-2.147A1.214,1.214,0,1,1,21,26.519v.03a1.214,1.214,0,0,1-1.214,1.214h.03Z" style="fill:url(#b)"/></svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32"><defs><linearGradient id="a" x1="-134.811" y1="-103.284" x2="-134.772" y2="-103.323" gradientTransform="matrix(721.094, 0, 0, -482.937, 97213.595, -49874.512)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#cbced0"/><stop offset="1" stop-color="#84838b"/></linearGradient><linearGradient id="b" x1="-135.378" y1="-102.985" x2="-135.339" y2="-103.024" gradientTransform="matrix(398, 0, 0, -406.124, 53893, -41812.836)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#276dc3"/><stop offset="1" stop-color="#165caa"/></linearGradient></defs><title>file_type_r</title><path d="M16,23.956c-7.732,0-14-4.2-14-9.376S8.268,5.2,16,5.2,30,9.4,30,14.58,23.732,23.956,16,23.956ZM18.143,8.87C12.266,8.87,7.5,11.74,7.5,15.28s4.764,6.41,10.641,6.41,10.214-1.962,10.214-6.41S24.02,8.87,18.143,8.87Z" style="fill:url(#a)"/><path d="M23.321,19.726a10.545,10.545,0,0,1,1.34.5,2.591,2.591,0,0,1,.68.485,1.835,1.835,0,0,1,.311.447l3.339,5.63-5.4,0-2.524-4.74a6.1,6.1,0,0,0-.835-1.145.879.879,0,0,0-.641-.291H18.311v6.173l-4.776,0V11.026h9.591S27.5,11.1,27.5,15.261,23.321,19.726,23.321,19.726Zm-2.077-5.28-2.891,0v2.681h2.893a1.323,1.323,0,0,0,1.34-1.364A1.247,1.247,0,0,0,21.244,14.447Z" style="fill:url(#b)"/></svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 7.4 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32"><defs><radialGradient id="a" cx="-492.035" cy="-883.37" r="13.998" gradientTransform="matrix(0.866, -0.5, -0.3, -0.52, 177.106, -689.033)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#7d7d7d"/><stop offset="0.267" stop-color="#7e7c7a"/><stop offset="0.45" stop-color="#817871"/><stop offset="0.608" stop-color="#867162"/><stop offset="0.753" stop-color="#8d684c"/><stop offset="0.886" stop-color="#965c30"/><stop offset="1" stop-color="#a04f12"/></radialGradient></defs><title>file_type_rust</title><path d="M15.124,5.3a.832.832,0,1,1,.832.832h0a.831.831,0,0,1-.832-.832M5.2,12.834a.832.832,0,1,1,.832.832h0a.832.832,0,0,1-.832-.832m19.856.039a.832.832,0,1,1,.832.832.831.831,0,0,1-.832-.832h0M7.605,14.013a.76.76,0,0,0,.386-1l-.369-.835H9.074v6.545H6.144a10.247,10.247,0,0,1-.332-3.911Zm6.074.161V12.245h3.458c.179,0,1.261.206,1.261,1.016,0,.672-.83.913-1.513.913ZM8.958,24.561a.832.832,0,1,1,.832.832.831.831,0,0,1-.832-.832h0m12.331.039a.832.832,0,1,1,.832.832.832.832,0,0,1-.832-.832h0m.257-1.887a.758.758,0,0,0-.9.584l-.418,1.949a10.249,10.249,0,0,1-8.545-.041l-.417-1.949a.759.759,0,0,0-.9-.583h0l-1.721.37a10.233,10.233,0,0,1-.89-1.049h8.374c.095,0,.158-.017.158-.1V18.928c0-.086-.063-.1-.158-.1h-2.45V16.947h2.649a1.665,1.665,0,0,1,1.629,1.412c.105.413.336,1.757.494,2.187.157.483.8,1.447,1.482,1.447h4.323a10.243,10.243,0,0,1-.949,1.1Zm4.65-7.821a10.261,10.261,0,0,1,.022,1.779H25.167c-.105,0-.148.069-.148.172v.483c0,1.136-.641,1.384-1.2,1.447-.535.06-1.128-.224-1.2-.551a3.616,3.616,0,0,0-1.671-2.808c1.03-.654,2.1-1.619,2.1-2.911A3.292,3.292,0,0,0,21.44,9.8a4.559,4.559,0,0,0-2.2-.724H8.367A10.246,10.246,0,0,1,14.1,5.84l1.282,1.344a.758.758,0,0,0,1.072.026h0l1.434-1.372a10.248,10.248,0,0,1,7.015,5l-.982,2.217a.761.761,0,0,0,.386,1Zm2.448.036-.033-.343,1.011-.943a.42.42,0,0,0-.013-.595.428.428,0,0,0-.121-.081L28.2,12.483l-.1-.334.806-1.12a.422.422,0,0,0-.13-.581.43.43,0,0,0-.133-.055l-1.363-.222-.164-.306.573-1.257a.419.419,0,0,0-.236-.544.426.426,0,0,0-.146-.029l-1.383.048L25.7,7.819l.318-1.347a.421.421,0,0,0-.343-.487.435.435,0,0,0-.144,0L24.183,6.3l-.266-.219L23.966,4.7a.421.421,0,0,0-.431-.411.426.426,0,0,0-.141.028l-1.257.573-.306-.164-.222-1.363a.421.421,0,0,0-.5-.318.43.43,0,0,0-.133.055l-1.121.806-.333-.1-.483-1.293a.421.421,0,0,0-.555-.215.442.442,0,0,0-.12.08L17.418,3.39l-.343-.033L16.347,2.18a.421.421,0,0,0-.688,0l-.728,1.177-.343.033-.943-1.012a.421.421,0,0,0-.595.015.442.442,0,0,0-.08.12L12.483,3.8l-.333.1-1.12-.8a.422.422,0,0,0-.581.13.43.43,0,0,0-.055.133l-.222,1.363-.306.164L8.608,4.317a.421.421,0,0,0-.544.239.444.444,0,0,0-.028.144l.048,1.383L7.818,6.3,6.471,5.984a.421.421,0,0,0-.487.343.435.435,0,0,0,0,.144L6.3,7.819l-.218.265L4.7,8.036a.422.422,0,0,0-.383.573L4.89,9.866l-.164.306-1.363.222a.42.42,0,0,0-.318.5.43.43,0,0,0,.055.133l.806,1.12-.1.334-1.293.483a.421.421,0,0,0-.215.555.414.414,0,0,0,.081.121l1.011.943-.033.343-1.177.728a.421.421,0,0,0,0,.688l1.177.728.033.343-1.011.943a.421.421,0,0,0,.015.595.436.436,0,0,0,.119.08l1.293.483.1.334L3.1,20.972a.421.421,0,0,0,.131.581.43.43,0,0,0,.133.055l1.363.222.164.307-.573,1.257a.422.422,0,0,0,.24.545.438.438,0,0,0,.143.028l1.383-.048.219.266-.317,1.348a.42.42,0,0,0,.341.486.4.4,0,0,0,.146,0L7.818,25.7l.266.218L8.035,27.3a.419.419,0,0,0,.429.41.413.413,0,0,0,.143-.028l1.257-.573.306.164.222,1.362a.421.421,0,0,0,.5.319.407.407,0,0,0,.133-.055l1.12-.807.334.1.483,1.292a.422.422,0,0,0,.556.214.436.436,0,0,0,.119-.08l.943-1.011.343.034.728,1.177a.422.422,0,0,0,.588.1.413.413,0,0,0,.1-.1l.728-1.177.343-.034.943,1.011a.421.421,0,0,0,.595-.015.436.436,0,0,0,.08-.119l.483-1.292.334-.1,1.12.807a.421.421,0,0,0,.581-.131.43.43,0,0,0,.055-.133l.222-1.362.306-.164,1.257.573a.421.421,0,0,0,.544-.239.438.438,0,0,0,.028-.143l-.048-1.384.265-.218,1.347.317a.421.421,0,0,0,.487-.34.447.447,0,0,0,0-.146L25.7,24.183l.218-.266,1.383.048a.421.421,0,0,0,.41-.431.4.4,0,0,0-.028-.142l-.573-1.257.164-.307,1.363-.222a.421.421,0,0,0,.319-.5.434.434,0,0,0-.056-.135l-.806-1.12.1-.334,1.293-.483a.42.42,0,0,0,.215-.554.414.414,0,0,0-.081-.121l-1.011-.943.033-.343,1.177-.728a.421.421,0,0,0,0-.688Z" style="fill:url(#a)"/></svg>

Before

Width:  |  Height:  |  Size: 4.1 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_shell</title><path d="M29.4,27.6H2.5V4.5H29.4Zm-25.9-1H28.4V5.5H3.5Z" style="fill:#d9b400"/><polygon points="6.077 19.316 5.522 18.484 10.366 15.255 5.479 11.184 6.12 10.416 12.035 15.344 6.077 19.316" style="fill:#d9b400"/><rect x="12.7" y="18.2" width="7.8" height="1" style="fill:#d9b400"/><rect x="2.5" y="5.5" width="26.9" height="1.9" style="fill:#d9b400"/></svg>

Before

Width:  |  Height:  |  Size: 446 B

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32"><defs><linearGradient id="a" x1="-134.494" y1="-171.82" x2="-134.497" y2="-171.89" gradientTransform="matrix(240, 0, 0, -205.6, 32295, -35312.585)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#f88535"/><stop offset="1" stop-color="#fd2221"/></linearGradient></defs><title>file_type_swift</title><path d="M19.422,4.007s6.217,3.554,7.844,9.2c1.466,5.1.292,7.534.292,7.534a8.915,8.915,0,0,1,1.742,2.8,4.825,4.825,0,0,1,.29,4.453s-.1-2.08-3.2-2.511c-2.841-.4-3.874,2.366-9.3,2.232A18.435,18.435,0,0,1,2,19.354C4.651,20.8,8.124,23.045,12.449,22.7s5.228-1.674,5.228-1.674A66.9,66.9,0,0,1,4.891,7.643c3.4,2.845,11.822,8.507,11.626,8.363A75.826,75.826,0,0,1,8.092,6.24S20.728,16.629,21.745,16.563c.418-.861,2.579-5.318-2.324-12.557Z" style="fill:url(#a)"/></svg>

Before

Width:  |  Height:  |  Size: 873 B

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_tex</title><path d="M11.333,13.122c-.128-1.562-.241-2.756-2.287-2.756H7.91v8.4h2.145v.611l-3.083-.029-3.082.029v-.611H6.034v-8.4H4.884c-2.046,0-2.159,1.208-2.287,2.756H2l.284-3.367h9.362l.284,3.367h-.6Z" style="fill:#cfcfcf"/><path d="M19.289,22.53H10.41V21.92h1.506V13.467H10.41v-.611h8.637l.412,3.367h-.6c-.213-1.833-.682-2.756-2.855-2.756H13.791V17.2h.838c1.364,0,1.505-.6,1.505-1.662h.6v3.935h-.6c0-1.08-.142-1.662-1.505-1.662h-.838v4.106h2.216c2.472,0,3-1.108,3.3-3.225h.6Z" style="fill:#cfcfcf"/><path d="M27.727,19.186c-.54,0-1.96,0-2.415.029V18.6h1.179l-2.557-3.552-2.529,3.381A4.1,4.1,0,0,0,22.7,18.6v.611c-.355-.029-1.576-.029-2.017-.029-.4,0-1.548,0-1.875.029V18.6h.383a7.459,7.459,0,0,0,.824-.043c.5-.043.54-.085.667-.256L23.536,14.5l-3.153-4.418H19V9.47c.384.028,1.79.028,2.273.028.582,0,1.918,0,2.429-.028v.611H22.528l2.117,2.955,2.074-2.784a4.1,4.1,0,0,0-1.293-.17V9.47c.356.028,1.591.028,2.032.028.4,0,1.534,0,1.861-.028v.611h-.369a5.264,5.264,0,0,0-.838.043c-.469.043-.526.071-.667.256l-2.4,3.21L28.636,18.6H30v.611C29.645,19.186,28.182,19.186,27.727,19.186Z" style="fill:#cfcfcf"/></svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_text</title><path d="M22.038,2H6.375a1.755,1.755,0,0,0-1.75,1.75v24.5A1.755,1.755,0,0,0,6.375,30h19.25a1.755,1.755,0,0,0,1.75-1.75V6.856Zm.525,2.844,1.663,1.531H22.563ZM6.375,28.25V3.75H20.813V8.125h4.813V28.25Z" style="fill:#c2c2c2"/><rect x="8.125" y="15.097" width="13.076" height="1.75" style="fill:#829ec2"/><rect x="8.125" y="24.439" width="9.762" height="1.75" style="fill:#829ec2"/><rect x="8.125" y="19.763" width="15.75" height="1.75" style="fill:#829ec2"/><rect x="8.125" y="10.23" width="15.75" height="1.75" style="fill:#829ec2"/></svg>

Before

Width:  |  Height:  |  Size: 626 B

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_typescript_official</title><rect x="2" y="2" width="28" height="28" rx="1.312" style="fill:#3178c6"/><path d="M18.245,23.759v3.068a6.492,6.492,0,0,0,1.764.575,11.56,11.56,0,0,0,2.146.192,9.968,9.968,0,0,0,2.088-.211,5.11,5.11,0,0,0,1.735-.7,3.542,3.542,0,0,0,1.181-1.266,4.469,4.469,0,0,0,.186-3.394,3.409,3.409,0,0,0-.717-1.117,5.236,5.236,0,0,0-1.123-.877,12.027,12.027,0,0,0-1.477-.734q-.6-.249-1.08-.484a5.5,5.5,0,0,1-.813-.479,2.089,2.089,0,0,1-.516-.518,1.091,1.091,0,0,1-.181-.618,1.039,1.039,0,0,1,.162-.571,1.4,1.4,0,0,1,.459-.436,2.439,2.439,0,0,1,.726-.283,4.211,4.211,0,0,1,.956-.1,5.942,5.942,0,0,1,.808.058,6.292,6.292,0,0,1,.856.177,5.994,5.994,0,0,1,.836.3,4.657,4.657,0,0,1,.751.422V13.9a7.509,7.509,0,0,0-1.525-.4,12.426,12.426,0,0,0-1.9-.129,8.767,8.767,0,0,0-2.064.235,5.239,5.239,0,0,0-1.716.733,3.655,3.655,0,0,0-1.171,1.271,3.731,3.731,0,0,0-.431,1.845,3.588,3.588,0,0,0,.789,2.34,6,6,0,0,0,2.395,1.639q.63.26,1.175.509a6.458,6.458,0,0,1,.942.517,2.463,2.463,0,0,1,.626.585,1.2,1.2,0,0,1,.23.719,1.1,1.1,0,0,1-.144.552,1.269,1.269,0,0,1-.435.441,2.381,2.381,0,0,1-.726.292,4.377,4.377,0,0,1-1.018.105,5.773,5.773,0,0,1-1.969-.35A5.874,5.874,0,0,1,18.245,23.759Zm-5.154-7.638h4V13.594H5.938v2.527H9.92V27.375h3.171Z" style="fill:#fff;fill-rule:evenodd"/></svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_yaml</title><path d="M2,12.218c.755,0,1.51-.008,2.264,0l.053.038Q5.7,13.638,7.078,15.014c.891-.906,1.8-1.794,2.7-2.7.053-.052.11-.113.192-.1.608,0,1.215,0,1.823,0a1.4,1.4,0,0,1,.353.019c-.7.67-1.377,1.369-2.069,2.05L5.545,18.8c-.331.324-.648.663-.989.975-.754.022-1.511.007-2.266.007,1.223-1.209,2.431-2.433,3.658-3.637C4.627,14.841,3.318,13.525,2,12.218Z" style="fill:#ffe885"/><path d="M12.7,12.218c.613,0,1.226,0,1.839,0q0,3.783,0,7.566c-.611,0-1.222.012-1.832-.008,0-1.664,0-3.329,0-4.994-1.6,1.607-3.209,3.2-4.811,4.8-.089.08-.166.217-.305.194-.824-.006-1.649,0-2.474,0Q8.916,16,12.7,12.218Z" style="fill:#ffe885"/><path d="M14.958,12.22c.47-.009.939,0,1.409,0,.836.853,1.69,1.689,2.536,2.532q1.268-1.267,2.539-2.532.7,0,1.4,0-.008,3.784,0,7.567c-.471,0-.943.006-1.414,0q.008-2.387,0-4.773c-.844.843-1.676,1.7-2.526,2.536-.856-.835-1.687-1.695-2.532-2.541,0,1.594-.006,3.188.006,4.781-.472,0-.943.005-1.415,0Q14.958,16,14.958,12.22Z" style="fill:#ffe885"/><path d="M23.259,12.217c.472,0,.944-.007,1.416,0q-.007,3.083,0,6.166c1.26,0,2.521,0,3.782,0,.063.006.144-.012.191.045.448.454.907.9,1.353,1.354q-3.371.007-6.741,0Q23.267,16,23.259,12.217Z" style="fill:#ffe885"/></svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>file_type_zig</title><polygon points="5.733 19.731 5.733 12.264 8.533 12.264 8.533 8.531 2 8.531 2 23.464 5.547 23.464 8.907 19.731 5.733 19.731" style="fill:#f7a41d"/><polygon points="26.453 8.531 23.093 12.264 26.267 12.264 26.267 19.731 23.467 19.731 23.467 23.464 30 23.464 30 8.531 26.453 8.531" style="fill:#f7a41d"/><polygon points="26.875 6.707 20.513 8.531 9.467 8.531 9.467 12.264 16.847 12.264 5.115 25.293 11.497 23.464 22.533 23.464 22.533 19.731 15.148 19.731 26.875 6.707" style="fill:#f7a41d"/></svg>

Before

Width:  |  Height:  |  Size: 583 B

View file

@ -1,712 +0,0 @@
// From https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml
const languages = [
"1C Enterprise",
"2-Dimensional Array",
"4D",
"ABAP",
"ABAP CDS",
"ABNF",
"AGS Script",
"AIDL",
"AL",
"AMPL",
"ANTLR",
"API Blueprint",
"APL",
"ASL",
"ASN.1",
"ASP.NET",
"ATS",
"ActionScript",
"Ada",
"Adblock Filter List",
"Adobe Font Metrics",
"Agda",
"Alloy",
"Alpine Abuild",
"Altium Designer",
"AngelScript",
"Ant Build System",
"Antlers",
"ApacheConf",
"Apex",
"Apollo Guidance Computer",
"AppleScript",
"Arc",
"AsciiDoc",
"AspectJ",
"Assembly",
"Astro",
"Asymptote",
"Augeas",
"AutoHotkey",
"AutoIt",
"Avro IDL",
"Awk",
"BASIC",
"Ballerina",
"Batchfile",
"Beef",
"Befunge",
"Berry",
"BibTeX",
"Bicep",
"Bikeshed",
"Bison",
"BitBake",
"Blade",
"BlitzBasic",
"BlitzMax",
"Bluespec",
"Bluespec BH",
"Boo",
"Boogie",
"Brainfuck",
"BrighterScript",
"Brightscript",
"Browserslist",
"C",
"C#",
"C++",
"C-ObjDump",
"C2hs Haskell",
"CAP CDS",
"CIL",
"CLIPS",
"CMake",
"COBOL",
"CODEOWNERS",
"COLLADA",
"CSON",
"CSS",
"CSV",
"CUE",
"CWeb",
"Cabal Config",
"Cadence",
"Cairo",
"CameLIGO",
"Cap'n Proto",
"CartoCSS",
"Ceylon",
"Chapel",
"Charity",
"Checksums",
"ChucK",
"Circom",
"Cirru",
"Clarion",
"Clarity",
"Classic ASP",
"Clean",
"Click",
"Clojure",
"Closure Templates",
"Cloud Firestore Security Rules",
"CoNLL-U",
"CodeQL",
"CoffeeScript",
"ColdFusion",
"ColdFusion CFC",
"Common Lisp",
"Common Workflow Language",
"Component Pascal",
"Cool",
"Coq",
"Cpp-ObjDump",
"Creole",
"Crystal",
"Csound",
"Csound Document",
"Csound Score",
"Cuda",
"Cue Sheet",
"Curry",
"Cycript",
"Cypher",
"Cython",
"D",
"D-ObjDump",
"D2",
"DIGITAL Command Language",
"DM",
"DNS Zone",
"DTrace",
"Dafny",
"Darcs Patch",
"Dart",
"DataWeave",
"Debian Package Control File",
"DenizenScript",
"Dhall",
"Diff",
"DirectX 3D File",
"Dockerfile",
"Dogescript",
"Dotenv",
"Dylan",
"E",
"E-mail",
"EBNF",
"ECL",
"ECLiPSe",
"EJS",
"EQ",
"Eagle",
"Earthly",
"Easybuild",
"Ecere Projects",
"Ecmarkup",
"EditorConfig",
"Edje Data Collection",
"Eiffel",
"Elixir",
"Elm",
"Elvish",
"Elvish Transcript",
"Emacs Lisp",
"EmberScript",
"Erlang",
"Euphoria",
"F#",
"F*",
"FIGlet Font",
"FLUX",
"Factor",
"Fancy",
"Fantom",
"Faust",
"Fennel",
"Filebench WML",
"Filterscript",
"Fluent",
"Formatted",
"Forth",
"Fortran",
"Fortran Free Form",
"FreeBasic",
"FreeMarker",
"Frege",
"Futhark",
"G-code",
"GAML",
"GAMS",
"GAP",
"GCC Machine Description",
"GDB",
"GDScript",
"GEDCOM",
"GLSL",
"GN",
"GSC",
"Game Maker Language",
"Gemfile.lock",
"Gemini",
"Genero",
"Genero Forms",
"Genie",
"Genshi",
"Gentoo Ebuild",
"Gentoo Eclass",
"Gerber Image",
"Gettext Catalog",
"Gherkin",
"Git Attributes",
"Git Config",
"Git Revision List",
"Gleam",
"Glyph",
"Glyph Bitmap Distribution Format",
"Gnuplot",
"Go",
"Go Checksums",
"Go Module",
"Go Workspace",
"Godot Resource",
"Golo",
"Gosu",
"Grace",
"Gradle",
"Gradle Kotlin DSL",
"Grammatical Framework",
"Graph Modeling Language",
"GraphQL",
"Graphviz (DOT)",
"Groovy",
"Groovy Server Pages",
"HAProxy",
"HCL",
"HLSL",
"HOCON",
"HTML",
"HTML+ECR",
"HTML+EEX",
"HTML+ERB",
"HTML+PHP",
"HTML+Razor",
"HTTP",
"HXML",
"Hack",
"Haml",
"Handlebars",
"Harbour",
"Haskell",
"Haxe",
"HiveQL",
"HolyC",
"Hosts File",
"Hy",
"HyPhy",
"IDL",
"IGOR Pro",
"INI",
"IRC log",
"Idris",
"Ignore List",
"ImageJ Macro",
"Imba",
"Inform 7",
"Ink",
"Inno Setup",
"Io",
"Ioke",
"Isabelle",
"Isabelle ROOT",
"J",
"JAR Manifest",
"JCL",
"JFlex",
"JSON",
"JSON with Comments",
"JSON5",
"JSONLD",
"JSONiq",
"Janet",
"Jasmin",
"Java",
"Java Properties",
"Java Server Pages",
"JavaScript",
"JavaScript+ERB",
"Jest Snapshot",
"JetBrains MPS",
"Jinja",
"Jison",
"Jison Lex",
"Jolie",
"Jsonnet",
"Julia",
"Jupyter Notebook",
"Just",
"KRL",
"Kaitai Struct",
"KakouneScript",
"KerboScript",
"KiCad Layout",
"KiCad Legacy Layout",
"KiCad Schematic",
"Kickstart",
"Kit",
"Kotlin",
"Kusto",
"LFE",
"LLVM",
"LOLCODE",
"LSL",
"LTspice Symbol",
"LabVIEW",
"Lark",
"Lasso",
"Latte",
"Lean",
"Less",
"Lex",
"LigoLANG",
"LilyPond",
"Limbo",
"Linker Script",
"Linux Kernel Module",
"Liquid",
"Literate Agda",
"Literate CoffeeScript",
"Literate Haskell",
"LiveScript",
"Logos",
"Logtalk",
"LookML",
"LoomScript",
"Lua",
"M",
"M4",
"M4Sugar",
"MATLAB",
"MAXScript",
"MDX",
"MLIR",
"MQL4",
"MQL5",
"MTML",
"MUF",
"Macaulay2",
"Makefile",
"Mako",
"Markdown",
"Marko",
"Mask",
"Mathematica",
"Maven POM",
"Max",
"Mercury",
"Mermaid",
"Meson",
"Metal",
"Microsoft Developer Studio Project",
"Microsoft Visual Studio Solution",
"MiniD",
"MiniYAML",
"Mint",
"Mirah",
"Modelica",
"Modula-2",
"Modula-3",
"Module Management System",
"Monkey",
"Monkey C",
"Moocode",
"MoonScript",
"Motoko",
"Motorola 68K Assembly",
"Move",
"Muse",
"Mustache",
"Myghty",
"NASL",
"NCL",
"NEON",
"NL",
"NPM Config",
"NSIS",
"NWScript",
"Nasal",
"Nearley",
"Nemerle",
"NetLinx",
"NetLinx+ERB",
"NetLogo",
"NewLisp",
"Nextflow",
"Nginx",
"Nim",
"Ninja",
"Nit",
"Nix",
"Nu",
"NumPy",
"Nunjucks",
"Nushell",
"OASv2-json",
"OASv2-yaml",
"OASv3-json",
"OASv3-yaml",
"OCaml",
"ObjDump",
"Object Data Instance Notation",
"ObjectScript",
"Objective-C",
"Objective-C++",
"Objective-J",
"Odin",
"Omgrofl",
"Opa",
"Opal",
"Open Policy Agent",
"OpenAPI Specification v2",
"OpenAPI Specification v3",
"OpenCL",
"OpenEdge ABL",
"OpenQASM",
"OpenRC runscript",
"OpenSCAD",
"OpenStep Property List",
"OpenType Feature File",
"Option List",
"Org",
"Ox",
"Oxygene",
"Oz",
"P4",
"PDDL",
"PEG.js",
"PHP",
"PLSQL",
"PLpgSQL",
"POV-Ray SDL",
"Pact",
"Pan",
"Papyrus",
"Parrot",
"Parrot Assembly",
"Parrot Internal Representation",
"Pascal",
"Pawn",
"Pep8",
"Perl",
"Pic",
"Pickle",
"PicoLisp",
"PigLatin",
"Pike",
"PlantUML",
"Pod",
"Pod 6",
"PogoScript",
"Polar",
"Pony",
"Portugol",
"PostCSS",
"PostScript",
"PowerBuilder",
"PowerShell",
"Prisma",
"Processing",
"Procfile",
"Proguard",
"Prolog",
"Promela",
"Propeller Spin",
"Protocol Buffer",
"Protocol Buffer Text Format",
"Public Key",
"Pug",
"Puppet",
"Pure Data",
"PureBasic",
"PureScript",
"Pyret",
"Python",
"Python console",
"Python traceback",
"Q#",
"QML",
"QMake",
"Qt Script",
"Quake",
"R",
"RAML",
"RBS",
"RDoc",
"REALbasic",
"REXX",
"RMarkdown",
"RPC",
"RPGLE",
"RPM Spec",
"RUNOFF",
"Racket",
"Ragel",
"Raku",
"Rascal",
"Raw token data",
"ReScript",
"Readline Config",
"Reason",
"ReasonLIGO",
"Rebol",
"Record Jar",
"Red",
"Redcode",
"Redirect Rules",
"Regular Expression",
"Ren'Py",
"RenderScript",
"Rez",
"Rich Text Format",
"Ring",
"Riot",
"RobotFramework",
"Roff",
"Roff Manpage",
"Rouge",
"RouterOS Script",
"Ruby",
"Rust",
"SAS",
"SCSS",
"SELinux Policy",
"SMT",
"SPARQL",
"SQF",
"SQL",
"SQLPL",
"SRecode Template",
"SSH Config",
"STAR",
"STL",
"STON",
"SVG",
"SWIG",
"Sage",
"SaltStack",
"Sass",
"Scala",
"Scaml",
"Scenic",
"Scheme",
"Scilab",
"Self",
"ShaderLab",
"Shell",
"ShellCheck Config",
"ShellSession",
"Shen",
"Sieve",
"Simple File Verification",
"Singularity",
"Slash",
"Slice",
"Slim",
"SmPL",
"Smali",
"Smalltalk",
"Smarty",
"Smithy",
"Snakemake",
"Solidity",
"Soong",
"SourcePawn",
"Spline Font Database",
"Squirrel",
"Stan",
"Standard ML",
"Starlark",
"Stata",
"StringTemplate",
"Stylus",
"SubRip Text",
"SugarSS",
"SuperCollider",
"Svelte",
"Sway",
"Sweave",
"Swift",
"SystemVerilog",
"TI Program",
"TL-Verilog",
"TLA",
"TOML",
"TSQL",
"TSV",
"TSX",
"TXL",
"Talon",
"Tcl",
"Tcsh",
"TeX",
"Tea",
"Terra",
"Texinfo",
"Text",
"TextMate Properties",
"Textile",
"Thrift",
"Turing",
"Turtle",
"Twig",
"Type Language",
"TypeScript",
"Typst",
"Unified Parallel C",
"Unity3D Asset",
"Unix Assembly",
"Uno",
"UnrealScript",
"UrWeb",
"V",
"VBA",
"VBScript",
"VCL",
"VHDL",
"Vala",
"Valve Data Format",
"Velocity Template Language",
"Verilog",
"Vim Help File",
"Vim Script",
"Vim Snippet",
"Visual Basic .NET",
"Visual Basic 6.0",
"Volt",
"Vue",
"Vyper",
"WDL",
"WGSL",
"Wavefront Material",
"Wavefront Object",
"Web Ontology Language",
"WebAssembly",
"WebAssembly Interface Type",
"WebIDL",
"WebVTT",
"Wget Config",
"Whiley",
"Wikitext",
"Win32 Message File",
"Windows Registry Entries",
"Witcher Script",
"Wollok",
"World of Warcraft Addon Data",
"Wren",
"X BitMap",
"X Font Directory Index",
"X PixMap",
"X10",
"XC",
"XCompose",
"XML",
"XML Property List",
"XPages",
"XProc",
"XQuery",
"XS",
"XSLT",
"Xojo",
"Xonsh",
"Xtend",
"YAML",
"YANG",
"YARA",
"YASnippet",
"Yacc",
"Yul",
"ZAP",
"ZIL",
"Zeek",
"ZenScript",
"Zephir",
"Zig",
"Zimpl",
"cURL Config",
"desktop",
"dircolors",
"eC",
"edn",
"fish",
"hoon",
"jq",
"kvlang",
"mIRC Script",
"mcfunction",
"mupad",
"nanorc",
"nesC",
"ooc",
"q",
"reStructuredText",
"robots.txt",
"sed",
"wisp",
"xBase",
]
export default languages;

View file

@ -5,7 +5,7 @@ import { Suggestion, SuggestionMode } from "./searchSuggestionsBox";
import { getRepos, search } from "@/app/api/(client)/client"; import { getRepos, search } from "@/app/api/(client)/client";
import { useMemo } from "react"; import { useMemo } from "react";
import { Symbol } from "@/lib/types"; import { Symbol } from "@/lib/types";
import languages from "./languages"; import { languageMetadataMap } from "@/lib/languageMetadata";
import { import {
VscSymbolClass, VscSymbolClass,
VscSymbolConstant, VscSymbolConstant,
@ -87,7 +87,7 @@ export const useSuggestionsData = ({
const isLoadingSymbols = useMemo(() => suggestionMode === "symbol" && _isLoadingSymbols, [suggestionMode, _isLoadingSymbols]); const isLoadingSymbols = useMemo(() => suggestionMode === "symbol" && _isLoadingSymbols, [suggestionMode, _isLoadingSymbols]);
const languageSuggestions = useMemo((): Suggestion[] => { const languageSuggestions = useMemo((): Suggestion[] => {
return languages.map((lang) => { return Object.keys(languageMetadataMap).map((lang) => {
const spotlight = [ const spotlight = [
"Python", "Python",
"Java", "Java",

View file

@ -1,6 +1,6 @@
'use client'; 'use client';
import { getSyntaxHighlightingExtension } from "@/hooks/useSyntaxHighlightingExtension"; import { getCodemirrorLanguage } from "@/lib/codemirrorLanguage";
import { lineOffsetExtension } from "@/lib/extensions/lineOffsetExtension"; import { lineOffsetExtension } from "@/lib/extensions/lineOffsetExtension";
import { SearchResultRange } from "@/lib/types"; import { SearchResultRange } from "@/lib/types";
import { defaultHighlightStyle, syntaxHighlighting } from "@codemirror/language"; import { defaultHighlightStyle, syntaxHighlighting } from "@codemirror/language";
@ -32,6 +32,7 @@ export const CodePreview = ({
const { theme } = useThemeNormalized(); const { theme } = useThemeNormalized();
const extensions = useMemo(() => { const extensions = useMemo(() => {
const codemirrorExtension = getCodemirrorLanguage(language);
return [ return [
EditorView.editable.of(false), EditorView.editable.of(false),
...(theme === 'dark' ? [ ...(theme === 'dark' ? [
@ -43,7 +44,7 @@ export const CodePreview = ({
]), ]),
lineNumbers(), lineNumbers(),
lineOffsetExtension(lineOffset), lineOffsetExtension(lineOffset),
getSyntaxHighlightingExtension(language), codemirrorExtension ? codemirrorExtension : [],
StateField.define<DecorationSet>({ StateField.define<DecorationSet>({
create(editorState: EditorState) { create(editorState: EditorState) {
const document = editorState.doc; const document = editorState.doc;

View file

@ -1,31 +1,17 @@
'use client'; 'use client';
import { getFileIconSvg } from "./fileIconSvg";
import { getFileIconIconify } from "./fileIconIconify"
import Image from "next/image";
import { QuestionMarkCircledIcon } from "@radix-ui/react-icons"; import { QuestionMarkCircledIcon } from "@radix-ui/react-icons";
import { Icon } from '@iconify/react'; import { Icon } from '@iconify/react';
import { languageMetadataMap } from "@/lib/languageMetadata";
interface FileIconProps { interface FileIconProps {
language: string; language: string;
} }
export const FileIcon = ({ language }: FileIconProps) => { export const FileIcon = ({ language }: FileIconProps) => {
const iconSvg = getFileIconSvg(language); const iconifyName = languageMetadataMap[language]?.iconify;
let iconifyName = null;
if (!iconSvg) {
iconifyName = getFileIconIconify(language);
}
if (iconSvg) { if (iconifyName) {
return (
<Image
src={iconSvg}
alt={language}
className="w-4 h-4 flex-shrink-0"
/>
)
} else if (iconifyName) {
return ( return (
<Icon icon={iconifyName} className="w-4 h-4 flex-shrink-0" /> <Icon icon={iconifyName} className="w-4 h-4 flex-shrink-0" />
) )

View file

@ -1,760 +0,0 @@
// https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml
export const getFileIconIconify = (language: string): string | null => {
// icons from:
// https://icon-sets.iconify.design/?&list=icons
const languageIconMap: { [key: string]: string | null } = {
"1C Enterprise": null,
"2-Dimensional Array": null,
"4D": null,
"ABAP": "file-icons:abap",
"ABAP CDS": "file-icons:abap",
"ABNF": null,
"AGS Script": "vscode-icons:file-type-c3",
"AIDL": null,
"AL": "vscode-icons:file-type-al",
"AMPL": "file-icons:ampl",
"ANTLR": "vscode-icons:file-type-antlr",
"API Blueprint": "vscode-icons:file-type-apib",
"APL": "vscode-icons:file-type-apl",
"ASL": null,
"ASN.1": null,
"ASP.NET": "vscode-icons:file-type-asp",
"ATS": "vscode-icons:file-type-ats",
"ActionScript": "vscode-icons:file-type-actionscript",
"Ada": "vscode-icons:file-type-ada",
"Adblock Filter List": null,
"Adobe Font Metrics": "simple-icons:adobefonts",
"Agda": "file-icons:agda",
"Alloy": "file-icons:alloy",
"Alpine Abuild": "file-icons:alpine-linux",
"Altium Designer": "simple-icons:altiumdesigner",
"AngelScript": "file-icons:angelscript",
"Ant Build System": "file-icons:apache-ant",
"Antlers": null,
"ApacheConf": "vscode-icons:file-type-apache",
"Apex": "vscode-icons:file-type-java",
"Apollo Guidance Computer": "file-icons:assembly-generic",
"AppleScript": "vscode-icons:file-type-applescript",
"Arc": null,
"AsciiDoc": "vscode-icons:file-type-asciidoc",
"AspectJ": null,
"Assembly": "file-icons:assembly-generic",
"Astro": "vscode-icons:file-type-astro",
"Asymptote": "file-icons:asymptote",
"Augeas": "file-icons:augeas",
"AutoHotkey": "file-icons:autohotkey",
"AutoIt": "file-icons:autoit",
"Avro IDL": "vscode-icons:file-type-apache",
"Awk": "vscode-icons:file-type-awk",
"B4X": null,
"BASIC": "devicon:visualbasic",
"BQN": null,
"Ballerina": "vscode-icons:file-type-ballerina",
"Batchfile": "vscode-icons:file-type-bat",
"Beef": null,
"Befunge": "vscode-icons:file-type-befunge",
"Berry": null,
"BibTeX": "file-icons:bibtex",
"Bicep": "vscode-icons:file-type-bicep",
"Bikeshed": "file-icons:bikeshed",
"Bison": "file-icons:bison",
"BitBake": null,
"Blade": "vscode-icons:file-type-blade",
"BlitzBasic": "vscode-icons:file-type-blitzbasic",
"BlitzMax": null,
"Bluespec": "file-icons:bluespec",
"Bluespec BH": "file-icons:bluespec",
"Boo": "file-icons:boo",
"Boogie": null,
"Brainfuck": "file-icons:brainfuck",
"BrighterScript": null,
"Brightscript": null,
"Browserslist": "file-icons:browserslist",
"C": "vscode-icons:file-type-c",
"C#": "vscode-icons:file-type-csharp",
"C++": "vscode-icons:file-type-cpp",
"C-ObjDump": null,
"C2hs Haskell": "vscode-icons:file-type-haskell",
"CAP CDS": null,
"CIL": null,
"CLIPS": "file-icons:clips",
"CMake": "vscode-icons:file-type-cmake",
"COBOL": "vscode-icons:file-type-cobol",
"CODEOWNERS": "vscode-icons:file-type-codeowners",
"COLLADA": null,
"CSON": "file-icons:config-coffeescript",
"CSS": "vscode-icons:file-type-css",
"CSV": "vscode-icons:file-type-excel",
"CUE": null,
"CWeb": null,
"Cabal Config": "vscode-icons:file-type-cabal",
"Caddyfile": "vscode-icons:file-type-caddy",
"Cadence": null,
"Cairo": "file-icons:cairo",
"Cairo Zero": "file-icons:cairo",
"CameLIGO": null,
"Cap'n Proto": null,
"Carbon": "devicon:carbon",
"CartoCSS": null,
"Ceylon": "vscode-icons:file-type-ceylon",
"Chapel": "file-icons:chapel",
"Charity": null,
"Checksums": null,
"ChucK": "file-icons:chuck",
"Circom": null,
"Cirru": "file-icons:cirru",
"Clarion": "file-icons:clarion",
"Clarity": "devicon:clarity",
"Classic ASP": "vscode-icons:file-type-asp",
"Clean": null,
"Click": "file-icons:click",
"Clojure": "vscode-icons:file-type-clojure",
"Closure Templates": null,
"Cloud Firestore Security Rules": null,
"CoNLL-U": null,
"CodeQL": "vscode-icons:file-type-codeql",
"CoffeeScript": "vscode-icons:file-type-coffeescript",
"ColdFusion": "file-icons:coldfusion",
"ColdFusion CFC": "file-icons:coldfusion",
"Common Lisp": "file-icons:common-lisp",
"Common Workflow Language": "file-icons:cwl",
"Component Pascal": "file-icons:component-pascal",
"Cool": null,
"Coq": "file-icons:coq",
"Cpp-ObjDump": null,
"Creole": "file-icons:creole",
"Crystal": "vscode-icons:file-type-crystal",
"Csound": "file-icons:csound",
"Csound Document": "file-icons:csound",
"Csound Score": "file-icons:csound",
"Cuda": "vscode-icons:file-type-cuda",
"Cue Sheet": null,
"Curry": "file-icons:curry",
"Cycript": null,
"Cylc": null,
"Cypher": null,
"Cython": "file-icons:cython",
"D": "vscode-icons:file-type-dlang",
"D-ObjDump": "vscode-icons:file-type-dlang",
"D2": null,
"DIGITAL Command Language": null,
"DM": null,
"DNS Zone": null,
"DTrace": null,
"Dafny": "file-icons:dafny",
"Darcs Patch": "file-icons:darcs-patch",
"Dart": "vscode-icons:file-type-dartlang",
"DataWeave": "file-icons:dataweave",
"Debian Package Control File": "vscode-icons:file-type-debian",
"DenizenScript": null,
"Dhall": "vscode-icons:file-type-dhall",
"Diff": "vscode-icons:file-type-diff",
"DirectX 3D File": null,
"Dockerfile": "vscode-icons:file-type-docker",
"Dogescript": "file-icons:dogescript",
"Dotenv": "vscode-icons:file-type-dotenv",
"Dune": null,
"Dylan": "vscode-icons:file-type-dylan",
"E": null,
"E-mail": null,
"EBNF": null,
"ECL": null,
"ECLiPSe": "devicon:eclipse",
"EJS": "vscode-icons:file-type-ejs",
"EQ": "file-icons:eq",
"Eagle": "file-icons:eagle",
"Earthly": "vscode-icons:file-type-earthly",
"Easybuild": "file-icons:easybuild",
"Ecere Projects": "file-icons:ecere",
"Ecmarkup": null,
"Edge": "file-icons:edge",
"EdgeQL": null,
"EditorConfig": "file-icons:editorconfig",
"Edje Data Collection": null,
"Eiffel": "file-icons:eiffel",
"Elixir": "vscode-icons:file-type-elixir",
"Elm": "vscode-icons:file-type-elm",
"Elvish": null,
"Elvish Transcript": null,
"Emacs Lisp": "file-icons:emacs",
"EmberScript": "file-icons:emberscript",
"Erlang": "vscode-icons:file-type-erlang",
"Euphoria": null,
"F#": "vscode-icons:file-type-fsharp",
"F*": null,
"FIGlet Font": null,
"FIRRTL": null,
"FLUX": "file-icons:flux",
"Factor": "file-icons:factor",
"Fancy": "file-icons:fancy",
"Fantom": "file-icons:fantom",
"Faust": "file-icons:faust",
"Fennel": null,
"Filebench WML": null,
"Filterscript": null,
"Fluent": null,
"Formatted": null,
"Forth": null,
"Fortran": "vscode-icons:file-type-fortran",
"Fortran Free Form": "vscode-icons:file-type-fortran",
"FreeBASIC": null,
"FreeMarker": "vscode-icons:file-type-freemarker",
"Frege": "file-icons:frege",
"Futhark": "file-icons:futhark",
"G-code": "vscode-icons:file-type-gcode",
"GAML": null,
"GAMS": "file-icons:gams",
"GAP": "file-icons:gap",
"GCC Machine Description": "devicon:gcc",
"GDB": "file-icons:gdb",
"GDScript": "file-icons:gdb",
"GEDCOM": null,
"GLSL": "vscode-icons:file-type-glsl",
"GN": "vscode-icons:file-type-python",
"GSC": null,
"Game Maker Language": null,
"Gemfile.lock": "file-icons:rubygems",
"Gemini": null,
"Genero 4gl": null,
"Genero per": null,
"Genie": null,
"Genshi": "file-icons:genshi",
"Gentoo Ebuild": "file-icons:gentoo",
"Gentoo Eclass": "file-icons:gentoo",
"Gerber Image": null,
"Gettext Catalog": null,
"Gherkin": null,
"Git Attributes": "vscode-icons:file-type-git",
"Git Config": "vscode-icons:file-type-git",
"Git Revision List": "vscode-icons:file-type-git",
"Gleam": "vscode-icons:file-type-gleam",
"Glimmer JS": null,
"Glimmer TS": null,
"Glyph": "file-icons:glyphs",
"Glyph Bitmap Distribution Format": "file-icons:glyphs",
"Gnuplot": "vscode-icons:file-type-gnuplot",
"Go": "vscode-icons:file-type-go",
"Go Checksums": "vscode-icons:file-type-go",
"Go Module": "vscode-icons:file-type-go",
"Go Workspace": "vscode-icons:file-type-go",
"Godot Resource": "vscode-icons:file-type-godot",
"Golo": "file-icons:golo",
"Gosu": "file-icons:gosu",
"Grace": null,
"Gradle": "vscode-icons:file-type-gradle",
"Gradle Kotlin DSL": "vscode-icons:file-type-gradle",
"Grammatical Framework": null,
"Graph Modeling Language": null,
"GraphQL": "vscode-icons:file-type-graphql",
"Graphviz (DOT)": "file-icons:graphviz",
"Groovy": "vscode-icons:file-type-groovy",
"Groovy Server Pages": "vscode-icons:file-type-groovy",
"HAProxy": null,
"HCL": "simple-icons:hcl",
"HLSL": "vscode-icons:file-type-hlsl",
"HOCON": null,
"HTML": "vscode-icons:file-type-html",
"HTML+ECR": "vscode-icons:file-type-html",
"HTML+EEX": "vscode-icons:file-type-html",
"HTML+ERB": "vscode-icons:file-type-html",
"HTML+PHP": "vscode-icons:file-type-html",
"HTML+Razor": "vscode-icons:file-type-html",
"HTTP": "vscode-icons:file-type-http",
"HXML": null,
"Hack": "file-icons:hack",
"Haml": "vscode-icons:file-type-haml",
"Handlebars": "vscode-icons:file-type-handlebars",
"Harbour": "vscode-icons:file-type-harbour",
"Hare": null,
"Haskell": "vscode-icons:file-type-haskell",
"Haxe": "vscode-icons:file-type-haxe",
"HiveQL": null,
"HolyC": "file-icons:templeos",
"Hosts File": null,
"Hy": "vscode-icons:file-type-hy",
"HyPhy": null,
"IDL": "file-icons:idl",
"IGOR Pro": "file-icons:igor-pro",
"INI": "vscode-icons:file-type-ini",
"IRC log": null,
"Idris": "vscode-icons:file-type-idris",
"Ignore List": "vscode-icons:file-type-git",
"ImageJ Macro": "simple-icons:imagej",
"Imba": "file-icons:imba",
"Inform 7": "file-icons:inform7",
"Ink": "vscode-icons:file-type-ink",
"Inno Setup": "vscode-icons:file-type-innosetup",
"Io": "vscode-icons:file-type-io",
"Ioke": "file-icons:ioke",
"Isabelle": "file-icons:isabelle",
"Isabelle ROOT": "file-icons:isabelle",
"J": null,
"JAR Manifest": "vscode-icons:file-type-java",
"JCL": null,
"JFlex": null,
"JSON": "vscode-icons:file-type-json",
"JSON with Comments": "vscode-icons:file-type-json",
"JSON5": "vscode-icons:file-type-json5",
"JSONLD": "vscode-icons:file-type-json",
"JSONiq": "vscode-icons:file-type-json",
"Janet": "vscode-icons:file-type-janet",
"Jasmin": null,
"Java": "vscode-icons:file-type-java",
"Java Properties": "vscode-icons:file-type-java",
"Java Server Pages": "vscode-icons:file-type-java",
"Java Template Engine": "vscode-icons:file-type-java",
"JavaScript": "vscode-icons:file-type-js",
"JavaScript+ERB": "vscode-icons:file-type-js",
"Jest Snapshot": "vscode-icons:file-type-jest-snapshot",
"JetBrains MPS": "logos:jetbrains-icon",
"Jinja": "vscode-icons:file-type-jinja",
"Jison": "file-icons:jison",
"Jison Lex": "file-icons:jison",
"Jolie": "file-icons:jolie",
"Jsonnet": "vscode-icons:file-type-jsonnet",
"Julia": "vscode-icons:file-type-julia",
"Julia REPL": "vscode-icons:file-type-julia",
"Jupyter Notebook": "vscode-icons:file-type-jupyter",
"Just": null,
"KRL": "file-icons:krl",
"Kaitai Struct": "file-icons:kaitai",
"KakouneScript": null,
"KerboScript": null,
"KiCad Layout": "file-icons:kicad",
"KiCad Legacy Layout": "file-icons:kicad",
"KiCad Schematic": "file-icons:kicad",
"Kickstart": null,
"Kit": null,
"Kotlin": "vscode-icons:file-type-kotlin",
"Kusto": "vscode-icons:file-type-kusto",
"LFE": "file-icons:lfe",
"LLVM": "file-icons:llvm",
"LOLCODE": "vscode-icons:file-type-lolcode",
"LSL": "vscode-icons:file-type-lsl",
"LTspice Symbol": "simple-icons:ltspice",
"LabVIEW": "file-icons:labview",
"Lark": "file-icons:lark",
"Lasso": "file-icons:lasso",
"Latte": null,
"Lean": "file-icons:lean",
"Lean 4": "file-icons:lean",
"Less": "vscode-icons:file-type-less",
"Lex": "vscode-icons:file-type-lex",
"LigoLANG": null,
"LilyPond": "vscode-icons:file-type-lilypond",
"Limbo": null,
"Linker Script": "vscode-icons:file-type-text",
"Linux Kernel Module": "devicon:linux",
"Liquid": "vscode-icons:file-type-liquid",
"Literate Agda": "file-icons:agda",
"Literate CoffeeScript": "vscode-icons:file-type-coffeescript",
"Literate Haskell": "vscode-icons:file-type-haskell",
"LiveCode Script": null,
"LiveScript": "vscode-icons:file-type-livescript",
"Logos": null,
"Logtalk": "file-icons:logtalk",
"LookML": "file-icons:lookml",
"LoomScript": null,
"Lua": "vscode-icons:file-type-lua",
"Luau": "vscode-icons:file-type-luau",
"M": null,
"M4": null,
"M4Sugar": null,
"MATLAB": "vscode-icons:file-type-matlab",
"MAXScript": "vscode-icons:file-type-maxscript",
"MDX": "vscode-icons:file-type-mdx",
"MLIR": null,
"MQL4": null,
"MQL5": null,
"MTML": null,
"MUF": null,
"Macaulay2": "file-icons:macaulay2",
"Makefile": "vscode-icons:file-type-makefile",
"Mako": "file-icons:mako",
"Markdown": "vscode-icons:file-type-markdown",
"Marko": "vscode-icons:file-type-marko",
"Mask": null,
"Mathematica": "file-icons:mathematica",
"Maven POM": "vscode-icons:file-type-maven",
"Max": "file-icons:max",
"Mercury": null,
"Mermaid": "vscode-icons:file-type-mermaid",
"Meson": "vscode-icons:file-type-meson",
"Metal": "file-icons:metal",
"Microsoft Developer Studio Project": null,
"Microsoft Visual Studio Solution": null,
"MiniD": null,
"MiniYAML": "vscode-icons:file-type-yaml",
"Mint": "file-icons:mint",
"Mirah": "file-icons:mirah",
"Modelica": "file-icons:modelica",
"Modula-2": "file-icons:modula-2",
"Modula-3": "file-icons:modula-3",
"Module Management System": null,
"Mojo": "vscode-icons:file-type-mojo",
"Monkey": "file-icons:monkey",
"Monkey C": "file-icons:monkey",
"Moocode": null,
"MoonBit": null,
"MoonScript": null,
"Motoko": null,
"Motorola 68K Assembly": "file-icons:assembly-motorola",
"Move": null,
"Muse": null,
"Mustache": "vscode-icons:file-type-mustache",
"Myghty": null,
"NASL": null,
"NCL": null,
"NEON": "file-icons:neon",
"NL": null,
"NMODL": null,
"NPM Config": "vscode-icons:file-type-npm",
"NSIS": "file-icons:nsis",
"NWScript": "file-icons:nwscript",
"Nasal": null,
"Nearley": null,
"Nemerle": "file-icons:nemerle",
"NetLinx": "file-icons:netlinx",
"NetLinx+ERB": "file-icons:netlinx",
"NetLogo": "file-icons:netlogo",
"NewLisp": "file-icons:lisp",
"Nextflow": "vscode-icons:file-type-nextflow",
"Nginx": "vscode-icons:file-type-nginx",
"Nim": "vscode-icons:file-type-nim",
"Ninja": "vscode-icons:file-type-ninja",
"Nit": null,
"Nix": "vscode-icons:file-type-nix",
"Noir": null,
"Nu": null,
"NumPy": "vscode-icons:file-type-numpy",
"Nunjucks": "vscode-icons:file-type-nunjucks",
"Nushell": "vscode-icons:file-type-shell",
"OASv2-json": "vscode-icons:file-type-json",
"OASv2-yaml": "vscode-icons:file-type-yaml",
"OASv3-json": "vscode-icons:file-type-json",
"OASv3-yaml": "vscode-icons:file-type-yaml",
"OCaml": "vscode-icons:file-type-ocaml",
"Oberon": "file-icons:oberon",
"ObjDump": null,
"Object Data Instance Notation": null,
"ObjectScript": null,
"Objective-C": "vscode-icons:file-type-objectivec",
"Objective-C++": "vscode-icons:file-type-objectivecpp",
"Objective-J": null,
"Odin": "file-icons:odin",
"Omgrofl": null,
"Opa": "file-icons:opa",
"Opal": null,
"Open Policy Agent": "file-icons:openpolicyagent",
"OpenAPI Specification v2": "file-icons:openapi",
"OpenAPI Specification v3": "file-icons:openapi",
"OpenCL": "vscode-icons:file-type-opencl",
"OpenEdge ABL": null,
"OpenQASM": null,
"OpenRC runscript": null,
"OpenSCAD": "vscode-icons:file-type-openscad",
"OpenStep Property List": null,
"OpenType Feature File": null,
"Option List": null,
"Org": "vscode-icons:file-type-org",
"Ox": null,
"Oxygene": "file-icons:oxygene",
"Oz": "file-icons:oz",
"P4": "file-icons:p4",
"PDDL": "vscode-icons:file-type-pddl",
"PEG.js": "file-icons:pegjs",
"PHP": "vscode-icons:file-type-php",
"PLSQL": "vscode-icons:file-type-plsql",
"PLpgSQL": null,
"POV-Ray SDL": "file-icons:pov-ray",
"Pact": null,
"Pan": null,
"Papyrus": "file-icons:papyrus",
"Parrot": "file-icons:parrot",
"Parrot Assembly": "file-icons:assembly-generic",
"Parrot Internal Representation": null,
"Pascal": "file-icons:pascal",
"Pawn": null,
"Pep8": "vscode-icons:file-type-python",
"Perl": "vscode-icons:file-type-perl",
"Pic": null,
"Pickle": "file-icons:pickle",
"PicoLisp": "file-icons:picolisp",
"PigLatin": null,
"Pike": "file-icons:pike",
"Pip Requirements": "vscode-icons:file-type-pip",
"Pkl": null,
"PlantUML": "vscode-icons:file-type-plantuml",
"Pod": "vscode-icons:file-type-perl",
"Pod 6": "vscode-icons:file-type-perl",
"PogoScript": "file-icons:pogoscript",
"Polar": null,
"Pony": "vscode-icons:file-type-pony",
"Portugol": null,
"PostCSS": "vscode-icons:file-type-postcss",
"PostScript": "file-icons:postscript",
"PowerBuilder": "file-icons:powerbuilder",
"PowerShell": "vscode-icons:file-type-powershell",
"Praat": null,
"Prisma": "vscode-icons:file-type-prisma",
"Processing": "vscode-icons:file-type-processinglang",
"Procfile": "vscode-icons:file-type-procfile",
"Proguard": null,
"Prolog": "vscode-icons:file-type-prolog",
"Promela": null,
"Propeller Spin": "file-icons:propeller",
"Protocol Buffer": "vscode-icons:file-type-protobuf",
"Protocol Buffer Text Format": "vscode-icons:file-type-protobuf",
"Public Key": "vscode-icons:file-type-key",
"Pug": "vscode-icons:file-type-pug",
"Puppet": "vscode-icons:file-type-puppet",
"Pure Data": null,
"PureBasic": "file-icons:purebasic",
"PureScript": "vscode-icons:file-type-purescript",
"Pyret": "vscode-icons:file-type-pyret",
"Python": "vscode-icons:file-type-python",
"Python console": "vscode-icons:file-type-python",
"Python traceback": "vscode-icons:file-type-python",
"Q#": "vscode-icons:file-type-qsharp",
"QML": "vscode-icons:file-type-qml",
"QMake": null,
"Qt Script": "file-icons:qt",
"Quake": null,
"QuickBASIC": null,
"R": "vscode-icons:file-type-r",
"RAML": "vscode-icons:file-type-raml",
"RBS": null,
"RDoc": "file-icons:rdoc",
"REALbasic": "file-icons:realbasic",
"REXX": "vscode-icons:file-type-rexx",
"RMarkdown": "file-icons:rmarkdown",
"RON": "vscode-icons:file-type-ron",
"RPC": null,
"RPGLE": null,
"RPM Spec": "devicon:redhat-wordmark",
"RUNOFF": null,
"Racket": "vscode-icons:file-type-racket",
"Ragel": null,
"Raku": "vscode-icons:file-type-raku",
"Rascal": "file-icons:rascal",
"Raw token data": null,
"ReScript": "vscode-icons:file-type-rescript",
"Readline Config": null,
"Reason": "vscode-icons:file-type-reason",
"ReasonLIGO": null,
"Rebol": "file-icons:rebol",
"Record Jar": null,
"Red": "file-icons:red",
"Redcode": null,
"Redirect Rules": null,
"Regular Expression": null,
"Ren'Py": "devicon:renpy",
"RenderScript": null,
"Rez": null,
"Rich Text Format": null,
"Ring": "file-icons:ring",
"Riot": "vscode-icons:file-type-riot",
"RobotFramework": "vscode-icons:file-type-robotframework",
"Roc": null,
"Roff": "file-icons:manpage",
"Roff Manpage": "file-icons:manpage",
"Rouge": null,
"RouterOS Script": null,
"Ruby": "vscode-icons:file-type-ruby",
"Rust": "vscode-icons:file-type-rust",
"SAS": "vscode-icons:file-type-sas",
"SCSS": "vscode-icons:file-type-scss",
"SELinux Policy": "devicon:linux",
"SMT": null,
"SPARQL": "vscode-icons:file-type-sparql",
"SQF": "vscode-icons:file-type-sqf",
"SQL": "vscode-icons:file-type-sql",
"SQLPL": null,
"SRecode Template": null,
"SSH Config": null,
"STAR": null,
"STL": null,
"STON": null,
"SVG": "vscode-icons:file-type-svg",
"SWIG": "vscode-icons:file-type-swig",
"Sage": "file-icons:sage",
"SaltStack": "vscode-icons:file-type-saltstack",
"Sass": "vscode-icons:file-type-sass",
"Scala": "vscode-icons:file-type-scala",
"Scaml": null,
"Scenic": null,
"Scheme": "file-icons:scheme",
"Scilab": "vscode-icons:file-type-scilab",
"Self": "file-icons:self",
"ShaderLab": "vscode-icons:file-type-shaderlab",
"Shell": "vscode-icons:file-type-shell",
"ShellCheck Config": "file-icons:shellcheck",
"ShellSession": "vscode-icons:file-type-shell",
"Shen": "file-icons:shen",
"Sieve": null,
"Simple File Verification": null,
"Singularity": null,
"Slash": "file-icons:slash",
"Slice": "vscode-icons:file-type-slice",
"Slim": "vscode-icons:file-type-slim",
"Slint": "vscode-icons:file-type-slint",
"SmPL": null,
"Smali": null,
"Smalltalk": null,
"Smarty": "vscode-icons:file-type-smarty",
"Smithy": null,
"Snakemake": "vscode-icons:file-type-snakemake",
"Solidity": "vscode-icons:file-type-solidity",
"Soong": null,
"SourcePawn": null,
"Spline Font Database": null,
"Squirrel": "vscode-icons:file-type-squirrel",
"Stan": "vscode-icons:file-type-stan",
"Standard ML": null,
"Starlark": null,
"Stata": "vscode-icons:file-type-stata",
"StringTemplate": null,
"Stylus": "vscode-icons:file-type-stylus",
"SubRip Text": null,
"SugarSS": null,
"SuperCollider": "file-icons:supercollider",
"Svelte": "vscode-icons:file-type-svelte",
"Sway": null,
"Sweave": null,
"Swift": "vscode-icons:file-type-swift",
"SystemVerilog": "vscode-icons:file-type-systemverilog",
"TI Program": null,
"TL-Verilog": "vscode-icons:file-type-verilog",
"TLA": "file-icons:tla",
"TOML": "vscode-icons:file-type-toml",
"TSPLIB data": null,
"TSQL": null,
"TSV": null,
"TSX": "vscode-icons:file-type-reactts",
"TXL": "file-icons:txl",
"Tact": null,
"Talon": null,
"Tcl": "vscode-icons:file-type-tcl",
"Tcsh": null,
"TeX": "vscode-icons:file-type-tex",
"Tea": null,
"Terra": "vscode-icons:file-type-terraform",
"Terraform Template": "vscode-icons:file-type-terraform",
"Texinfo": "vscode-icons:file-type-tex",
"Text": "vscode-icons:file-type-text",
"TextGrid": null,
"TextMate Properties": "file-icons:textmate",
"Textile": "vscode-icons:file-type-textile",
"Thrift": null,
"Toit": "vscode-icons:file-type-toit",
"Turing": "file-icons:turing",
"Turtle": null,
"Twig": "vscode-icons:file-type-twig",
"Type Language": null,
"TypeScript": null,
"TypeSpec": "vscode-icons:file-type-typescript",
"Typst": null,
"Unified Parallel C": null,
"Unity3D Asset": "devicon:unity",
"Unix Assembly": "file-icons:assembly-generic",
"Uno": "file-icons:uno",
"UnrealScript": "file-icons:unrealscript",
"UrWeb": "file-icons:urweb",
"V": null,
"VBA": "vscode-icons:file-type-vba",
"VBScript": "vscode-icons:file-type-vb",
"VCL": "file-icons:vcl",
"VHDL": "vscode-icons:file-type-vhdl",
"Vala": "vscode-icons:file-type-vala",
"Valve Data Format": null,
"Velocity Template Language": "vscode-icons:file-type-velocity",
"Verilog": "vscode-icons:file-type-verilog",
"Vim Help File": "vscode-icons:file-type-vim",
"Vim Script": "vscode-icons:file-type-vim",
"Vim Snippet": "vscode-icons:file-type-vim",
"Visual Basic .NET": "vscode-icons:file-type-vbproj",
"Visual Basic 6.0": "vscode-icons:file-type-vbproj",
"Volt": "vscode-icons:file-type-volt",
"Vue": "vscode-icons:file-type-vue",
"Vyper": "vscode-icons:file-type-vyper",
"WDL": "file-icons:wdl",
"WGSL": "vscode-icons:file-type-wgsl",
"Wavefront Material": null,
"Wavefront Object": null,
"Web Ontology Language": null,
"WebAssembly": "file-icons:webassembly",
"WebAssembly Interface Type": "file-icons:webassembly",
"WebIDL": null,
"WebVTT": "file-icons:webvtt",
"Wget Config": "file-icons:wget",
"Whiley": null,
"Wikitext": "vscode-icons:file-type-wikitext",
"Win32 Message File": "devicon:windows8",
"Windows Registry Entries": "devicon:windows8",
"Witcher Script": null,
"Wollok": null,
"World of Warcraft Addon Data": null,
"Wren": null,
"X BitMap": null,
"X Font Directory Index": null,
"X PixMap": null,
"X10": "file-icons:x10",
"XC": null,
"XCompose": null,
"XML": "vscode-icons:file-type-xml",
"XML Property List": "vscode-icons:file-type-xml",
"XPages": "file-icons:xpages",
"XProc": null,
"XQuery": "vscode-icons:file-type-xquery",
"XS": null,
"XSLT": "vscode-icons:file-type-excel",
"Xojo": null,
"Xonsh": null,
"Xtend": "file-icons:xtend",
"YAML": "vscode-icons:file-type-yaml",
"YANG": "vscode-icons:file-type-yang",
"YARA": "file-icons:yara",
"YASnippet": null,
"Yacc": "vscode-icons:file-type-yacc",
"Yul": null,
"ZAP": null,
"ZIL": null,
"Zeek": null,
"ZenScript": null,
"Zephir": "file-icons:zephir",
"Zig": "vscode-icons:file-type-zig",
"Zimpl": null,
"cURL Config": "file-icons:curl",
"crontab": "eos-icons:cronjob",
"desktop": null,
"dircolors": null,
"eC": "file-icons:ec",
"edn": null,
"fish": null,
"hoon": null,
"iCalendar": null,
"jq": null,
"kvlang": null,
"mIRC Script": "file-icons:mirc",
"mcfunction": null,
"mupad": "file-icons:mupad",
"nanorc": null,
"nesC": null,
"omnetpp-msg": null,
"omnetpp-ned": null,
"ooc": "file-icons:ooc",
"q": null,
"reStructuredText": "file-icons:restructuredtext",
"robots.txt": "vscode-icons:file-type-text",
"sed": null,
"templ": "vscode-icons:file-type-templ",
"vCard": null,
"wisp": null,
"xBase": null,
};
if (languageIconMap[language]) {
return languageIconMap[language];
} else {
return null;
}
};

View file

@ -2,284 +2,17 @@
import { EditorView } from "@codemirror/view"; import { EditorView } from "@codemirror/view";
import { useExtensionWithDependency } from "./useExtensionWithDependency"; import { useExtensionWithDependency } from "./useExtensionWithDependency";
import { StreamLanguage } from "@codemirror/language"; import { getCodemirrorLanguage } from "@/lib/codemirrorLanguage";
// CodeMirror 6 languages export const useSyntaxHighlightingExtension = (linguistLanguage: string, view: EditorView | undefined) => {
import { css } from "@codemirror/lang-css";
import { cpp } from "@codemirror/lang-cpp";
import { csharp } from "@replit/codemirror-lang-csharp";
import { go } from "@codemirror/lang-go";
import { html } from "@codemirror/lang-html";
import { java } from "@codemirror/lang-java";
import { javascript } from "@codemirror/lang-javascript";
import { json } from "@codemirror/lang-json";
import { less } from "@codemirror/lang-less";
import { liquid } from "@codemirror/lang-liquid";
import { markdown } from "@codemirror/lang-markdown";
import { php } from "@codemirror/lang-php";
import { python } from "@codemirror/lang-python";
import { rust } from "@codemirror/lang-rust";
import { sass } from "@codemirror/lang-sass";
import { sql } from "@codemirror/lang-sql";
import { vue } from "@codemirror/lang-vue";
import { xml } from "@codemirror/lang-xml"
import { yaml } from "@codemirror/lang-yaml";
// Legacy CodeMirror 5 modes
// https://codemirror.net/5/mode/
import { apl } from "@codemirror/legacy-modes/mode/apl";
// import { asn1 } from "@codemirror/legacy-modes/mode/asn1"; // this seems to be broken
import { ceylon } from "@codemirror/legacy-modes/mode/clike";
import { clojure } from "@codemirror/legacy-modes/mode/clojure";
import { cmake } from "@codemirror/legacy-modes/mode/cmake";
import { cobol } from "@codemirror/legacy-modes/mode/cobol";
import { coffeeScript } from "@codemirror/legacy-modes/mode/coffeescript";
import { commonLisp } from "@codemirror/legacy-modes/mode/commonlisp";
import { crystal } from "@codemirror/legacy-modes/mode/crystal";
import { cypher } from "@codemirror/legacy-modes/mode/cypher";
import { d } from "@codemirror/legacy-modes/mode/d";
import { dart } from "@codemirror/legacy-modes/mode/clike";
// import { django } from "@codemirror/legacy-modes/mode/django"; // not present anymore
import { dockerFile } from "@codemirror/legacy-modes/mode/dockerfile";
import { diff } from "@codemirror/legacy-modes/mode/diff";
import { elm } from "@codemirror/legacy-modes/mode/elm";
import { erlang } from "@codemirror/legacy-modes/mode/erlang";
import { fortran } from "@codemirror/legacy-modes/mode/fortran";
import { gherkin } from "@codemirror/legacy-modes/mode/gherkin";
import { groovy } from "@codemirror/legacy-modes/mode/groovy";
import { haskell } from "@codemirror/legacy-modes/mode/haskell";
import { idl } from "@codemirror/legacy-modes/mode/idl";
import { jinja2 } from "@codemirror/legacy-modes/mode/jinja2";
import { julia } from "@codemirror/legacy-modes/mode/julia";
import { kotlin } from "@codemirror/legacy-modes/mode/clike";
import { liveScript } from "@codemirror/legacy-modes/mode/livescript";
import { lua } from "@codemirror/legacy-modes/mode/lua";
import { nesC } from "@codemirror/legacy-modes/mode/clike";
import { nginx } from "@codemirror/legacy-modes/mode/nginx";
import { objectiveC } from "@codemirror/legacy-modes/mode/clike";
import { objectiveCpp } from "@codemirror/legacy-modes/mode/clike";
import { octave } from "@codemirror/legacy-modes/mode/octave";
import { pascal } from "@codemirror/legacy-modes/mode/pascal";
import { perl } from "@codemirror/legacy-modes/mode/perl";
import { powerShell } from "@codemirror/legacy-modes/mode/powershell";
import { protobuf } from "@codemirror/legacy-modes/mode/protobuf";
import { pug } from "@codemirror/legacy-modes/mode/pug";
import { puppet } from "@codemirror/legacy-modes/mode/puppet";
import { r } from "@codemirror/legacy-modes/mode/r";
import { rpmSpec } from "@codemirror/legacy-modes/mode/rpm";
import { ruby } from "@codemirror/legacy-modes/mode/ruby";
import { scala } from "@codemirror/legacy-modes/mode/clike";
import { scheme } from "@codemirror/legacy-modes/mode/scheme";
import { shader } from "@codemirror/legacy-modes/mode/clike";
import { shell } from "@codemirror/legacy-modes/mode/shell";
import { squirrel } from "@codemirror/legacy-modes/mode/clike";
import { swift } from "@codemirror/legacy-modes/mode/swift";
import { tcl } from "@codemirror/legacy-modes/mode/tcl";
import { textile } from "@codemirror/legacy-modes/mode/textile";
import { stex } from "@codemirror/legacy-modes/mode/stex";
import { toml } from "@codemirror/legacy-modes/mode/toml";
import { turtle } from "@codemirror/legacy-modes/mode/turtle";
// import { twig } from "@codemirror/legacy-modes/mode/twig"; // not present anymore
import { vb } from "@codemirror/legacy-modes/mode/vb";
import { vbScript } from "@codemirror/legacy-modes/mode/vbscript";
import { velocity } from "@codemirror/legacy-modes/mode/velocity";
// import { vue } from "@codemirror/legacy-modes/mode/vue"; // not present anymore
import { verilog } from "@codemirror/legacy-modes/mode/verilog";
import { vhdl } from "@codemirror/legacy-modes/mode/vhdl";
import { wast } from "@codemirror/legacy-modes/mode/wast"; // webassembly
import { yacas } from "@codemirror/legacy-modes/mode/yacas";
import { xQuery } from "@codemirror/legacy-modes/mode/xquery";
export const useSyntaxHighlightingExtension = (language: string, view: EditorView | undefined) => {
const extension = useExtensionWithDependency( const extension = useExtensionWithDependency(
view ?? null, view ?? null,
() => { () => {
return getSyntaxHighlightingExtension(language); const codemirrorLanguage = getCodemirrorLanguage(linguistLanguage);
return codemirrorLanguage ? codemirrorLanguage : [];
}, },
[language] [linguistLanguage]
); );
return extension; return extension;
} }
export const getSyntaxHighlightingExtension = (language: string) => {
// maps linguist language defs to CodeMirror 6 language extensions
// and legacy CodeMirror 5 modes
switch (language.toLowerCase()) {
// CodeMirror 6 languages
case "css":
return css();
case "c":
case "c++":
return cpp();
case "c#":
return csharp();
case "go":
return go();
case "html":
return html();
case "java":
return java();
case "jsx":
case "tsx":
case "typescript":
case "javascript":
return javascript({
jsx: true,
typescript: true,
});
case "json":
case "oasv2-json":
case "oasv3-json":
case "jupyter notebook":
return json();
case "less":
return less();
case "liquid":
return liquid();
case "markdown":
return markdown();
case "php":
return php();
case "python":
return python();
case "rust":
return rust();
case "sass":
return sass();
case "sql":
return sql();
case "vue":
return vue();
case "xml":
return xml();
case "yaml":
case "oasv2-yaml":
case "oasv3-yaml":
return yaml();
// Legacy CodeMirror 5 modes
case "apl":
return StreamLanguage.define(apl);
// case "asn.1":
// return StreamLanguage.define(asn1);
case "ceylon":
return StreamLanguage.define(ceylon);
case "clojure":
return StreamLanguage.define(clojure);
case "cmake":
return StreamLanguage.define(cmake);
case "cobol":
return StreamLanguage.define(cobol);
case "coffeescript":
return StreamLanguage.define(coffeeScript);
case "common lisp":
return StreamLanguage.define(commonLisp);
case "crystal":
return StreamLanguage.define(crystal);
case "cypher":
return StreamLanguage.define(cypher);
case "d":
return StreamLanguage.define(d);
case "dart":
return StreamLanguage.define(dart);
case "dockerfile":
return StreamLanguage.define(dockerFile);
case "diff":
return StreamLanguage.define(diff);
case "elm":
return StreamLanguage.define(elm);
case "erlang":
return StreamLanguage.define(erlang);
case "fortran":
return StreamLanguage.define(fortran);
case "gherkin":
return StreamLanguage.define(gherkin);
case "groovy":
return StreamLanguage.define(groovy);
case "haskell":
return StreamLanguage.define(haskell);
case "idl":
return StreamLanguage.define(idl);
case "jinja":
return StreamLanguage.define(jinja2);
case "julia":
return StreamLanguage.define(julia);
case "kotlin":
return StreamLanguage.define(kotlin);
case "livescript":
return StreamLanguage.define(liveScript);
case "lua":
return StreamLanguage.define(lua);
case "nesc":
return StreamLanguage.define(nesC);
case "nginx":
return StreamLanguage.define(nginx);
case "objective-c":
return StreamLanguage.define(objectiveC);
case "objective-c++":
return StreamLanguage.define(objectiveCpp);
case "octave":
return StreamLanguage.define(octave);
case "pascal":
return StreamLanguage.define(pascal);
case "perl":
return StreamLanguage.define(perl);
case "powershell":
return StreamLanguage.define(powerShell);
case "protocol buffer":
return StreamLanguage.define(protobuf);
case "pug":
return StreamLanguage.define(pug);
case "puppet":
return StreamLanguage.define(puppet);
case "r":
return StreamLanguage.define(r);
case "rpm spec":
return StreamLanguage.define(rpmSpec);
case "ruby":
return StreamLanguage.define(ruby);
case "scala":
return StreamLanguage.define(scala);
case "scheme":
return StreamLanguage.define(scheme);
case "shader":
return StreamLanguage.define(shader);
case "shell":
return StreamLanguage.define(shell);
case "squirrel":
return StreamLanguage.define(squirrel);
case "swift":
return StreamLanguage.define(swift);
case "tcl":
return StreamLanguage.define(tcl);
case "textile":
return StreamLanguage.define(textile);
case "stex":
return StreamLanguage.define(stex);
case "toml":
return StreamLanguage.define(toml);
case "turtle":
return StreamLanguage.define(turtle);
case "vb":
return StreamLanguage.define(vb);
case "vbscript":
return StreamLanguage.define(vbScript);
case "velocity":
return StreamLanguage.define(velocity);
case "verilog":
return StreamLanguage.define(verilog);
case "vhdl":
return StreamLanguage.define(vhdl);
case "wast":
return StreamLanguage.define(wast);
case "yacas":
return StreamLanguage.define(yacas);
case "xquery":
return StreamLanguage.define(xQuery);
// plain text
default:
return [];
}
}

View file

@ -0,0 +1,230 @@
import { StreamLanguage, LanguageSupport } from "@codemirror/language";
// CodeMirror 6 languages
import { brainfuck } from "codemirror-lang-brainfuck"; // 3rd party
import { css } from "@codemirror/lang-css";
import { cpp } from "@codemirror/lang-cpp";
import { dot } from "@viz-js/lang-dot"; // 3rd party
import { csharp } from "@replit/codemirror-lang-csharp"; // 3rd party
import { elixir } from "codemirror-lang-elixir"; // 3rd party
import { go } from "@codemirror/lang-go";
import { graphqlLanguageSupport } from "cm6-graphql"; // 3rd party
import { handlebarsLanguage } from "@xiechao/codemirror-lang-handlebars"
import { hcl } from "codemirror-lang-hcl"; // 3rd party
import { html } from "@codemirror/lang-html";
import { j } from "codemirror-lang-j"; // 3rd party
import { java } from "@codemirror/lang-java";
import { javascript } from "@codemirror/lang-javascript";
import { jq } from "codemirror-lang-jq"; // 3rd party
import { json } from "@codemirror/lang-json";
import { jsonc } from "@shopify/lang-jsonc"; // 3rd party
import { less } from "@codemirror/lang-less";
import { liquid } from "@codemirror/lang-liquid";
import { makefile } from "codemirror-lang-makefile"; // 3rd party
import { markdown } from "@codemirror/lang-markdown";
import { mermaid } from "codemirror-lang-mermaid"; // 3rd party
import { nix } from "@replit/codemirror-lang-nix" // 3rd party
// import { perl } from "codemirror-lang-perl"; // 3rd party (not working?)
import { php } from "@codemirror/lang-php";
import { prolog } from "codemirror-lang-prolog"; // 3rd party (comments are broken)
import { python } from "@codemirror/lang-python";
// import { r } from "codemirror-lang-r" // 3rd party (not working?)
import { rust } from "@codemirror/lang-rust";
import { sass } from "@codemirror/lang-sass";
import { solidity } from "@replit/codemirror-lang-solidity"; // 3rd party
import { sparql } from "codemirror-lang-sparql"; // 3rd party
import { spreadsheet } from "codemirror-lang-spreadsheet"; // 3rd party
import { sql } from "@codemirror/lang-sql";
import { svelte } from "@replit/codemirror-lang-svelte"; // 3rd party
import { twig } from "@ssddanbrown/codemirror-lang-twig"; // 3rd party
import { vue } from "@codemirror/lang-vue";
import { wast } from "@codemirror/lang-wast";
import { wgsl } from "@iizukak/codemirror-lang-wgsl"; // 3rd party
import { xml } from "@codemirror/lang-xml"
import { yaml } from "@codemirror/lang-yaml";
import { zig } from "codemirror-lang-zig"; // 3rd party
// Legacy CodeMirror 5 modes
// https://codemirror.net/5/mode/
import { apl } from "@codemirror/legacy-modes/mode/apl";
// import { asn1 } from "@codemirror/legacy-modes/mode/asn1"; // this seems to be broken
import { ceylon } from "@codemirror/legacy-modes/mode/clike";
import { clojure } from "@codemirror/legacy-modes/mode/clojure";
import { cmake } from "@codemirror/legacy-modes/mode/cmake";
import { cobol } from "@codemirror/legacy-modes/mode/cobol";
import { coffeeScript } from "@codemirror/legacy-modes/mode/coffeescript";
import { commonLisp } from "@codemirror/legacy-modes/mode/commonlisp";
import { crystal } from "@codemirror/legacy-modes/mode/crystal";
import { cypher } from "@codemirror/legacy-modes/mode/cypher";
import { d } from "@codemirror/legacy-modes/mode/d";
import { dart } from "@codemirror/legacy-modes/mode/clike";
// import { django } from "@codemirror/legacy-modes/mode/django"; // not present anymore
import { dockerFile } from "@codemirror/legacy-modes/mode/dockerfile";
import { diff } from "@codemirror/legacy-modes/mode/diff";
import { elm } from "@codemirror/legacy-modes/mode/elm";
import { erlang } from "@codemirror/legacy-modes/mode/erlang";
import { fortran } from "@codemirror/legacy-modes/mode/fortran";
import { gherkin } from "@codemirror/legacy-modes/mode/gherkin";
import { groovy } from "@codemirror/legacy-modes/mode/groovy";
import { haskell } from "@codemirror/legacy-modes/mode/haskell";
import { idl } from "@codemirror/legacy-modes/mode/idl";
import { jinja2 } from "@codemirror/legacy-modes/mode/jinja2";
import { julia } from "@codemirror/legacy-modes/mode/julia";
import { kotlin } from "@codemirror/legacy-modes/mode/clike";
import { liveScript } from "@codemirror/legacy-modes/mode/livescript";
import { lua } from "@codemirror/legacy-modes/mode/lua";
import { nesC } from "@codemirror/legacy-modes/mode/clike";
import { nginx } from "@codemirror/legacy-modes/mode/nginx";
import { objectiveC } from "@codemirror/legacy-modes/mode/clike";
import { objectiveCpp } from "@codemirror/legacy-modes/mode/clike";
import { octave } from "@codemirror/legacy-modes/mode/octave";
import { pascal } from "@codemirror/legacy-modes/mode/pascal";
import { perl } from "@codemirror/legacy-modes/mode/perl";
import { powerShell } from "@codemirror/legacy-modes/mode/powershell";
import { protobuf } from "@codemirror/legacy-modes/mode/protobuf";
import { pug } from "@codemirror/legacy-modes/mode/pug";
import { puppet } from "@codemirror/legacy-modes/mode/puppet";
import { r } from "@codemirror/legacy-modes/mode/r";
import { rpmSpec } from "@codemirror/legacy-modes/mode/rpm";
import { ruby } from "@codemirror/legacy-modes/mode/ruby";
import { scala } from "@codemirror/legacy-modes/mode/clike";
import { scheme } from "@codemirror/legacy-modes/mode/scheme";
import { shader } from "@codemirror/legacy-modes/mode/clike";
import { shell } from "@codemirror/legacy-modes/mode/shell";
import { squirrel } from "@codemirror/legacy-modes/mode/clike";
import { swift } from "@codemirror/legacy-modes/mode/swift";
import { tcl } from "@codemirror/legacy-modes/mode/tcl";
import { textile } from "@codemirror/legacy-modes/mode/textile";
import { stex } from "@codemirror/legacy-modes/mode/stex";
import { toml } from "@codemirror/legacy-modes/mode/toml";
import { turtle } from "@codemirror/legacy-modes/mode/turtle";
// import { twig } from "@codemirror/legacy-modes/mode/twig"; // not present anymore
import { vb } from "@codemirror/legacy-modes/mode/vb";
import { vbScript } from "@codemirror/legacy-modes/mode/vbscript";
import { velocity } from "@codemirror/legacy-modes/mode/velocity";
import { verilog } from "@codemirror/legacy-modes/mode/verilog";
import { vhdl } from "@codemirror/legacy-modes/mode/vhdl";
// import { wast } from "@codemirror/legacy-modes/mode/wast"; // available in CodeMirror 6
import { webIDL } from "@codemirror/legacy-modes/mode/webidl";
import { xQuery } from "@codemirror/legacy-modes/mode/xquery";
import { languageMetadataMap } from "@/lib/languageMetadata";
export type CodeMirrorLanguageKey = keyof typeof codemirrorLanguageMap;
export const getCodemirrorLanguage = (linguistLanguage: string): StreamLanguage<unknown> | LanguageSupport | null => {
if (languageMetadataMap[linguistLanguage]?.codemirrorLanguage) {
const codemirrorLanguage = languageMetadataMap[linguistLanguage].codemirrorLanguage;
if (codemirrorLanguageMap[codemirrorLanguage]) {
return codemirrorLanguageMap[codemirrorLanguage];
}
}
return null;
}
export const codemirrorLanguageMap = {
// CodeMirror 6 languages
"brainfuck": brainfuck(),
"css": css(),
"c": cpp(),
"c#": csharp(),
"dot": dot(),
"elixir": elixir(),
"go": go(),
"graphql": graphqlLanguageSupport(),
"handlebars": new LanguageSupport(handlebarsLanguage),
"hcl": hcl(),
"html": html(),
"j": j(),
"java": java(),
"jsx": javascript({ jsx: true, typescript: false }),
"jq": jq(),
"json": json(),
"jsonc": jsonc(),
"less": less(),
"liquid": liquid(),
"makefile": makefile(),
"markdown": markdown(),
"mermaid": mermaid(), // not recognized by linguist/enry
"nix": nix(),
// "perl": perl(), // not working - use codemirror 5 mode
"php": php(),
"prolog": prolog(),
"python": python(),
// "r": r(), // not working - use codemirror 5 mode
"rust": rust(),
"sass": sass(),
"solidity": solidity,
"sparql": sparql(),
"spreadsheet": spreadsheet(),
"sql": sql(),
"svelte": svelte(),
"tsx": javascript({ jsx: true, typescript: true }),
"twig": twig(),
"typescript": javascript({ jsx: false, typescript: true }),
"vue": vue(),
"wast": wast(),
"wgsl": wgsl(),
"xml": xml(),
"yaml": yaml(),
"zig": zig(),
// Legacy CodeMirror 5 modes
"apl": StreamLanguage.define(apl),
"ceylon": StreamLanguage.define(ceylon),
"clojure": StreamLanguage.define(clojure),
"cmake": StreamLanguage.define(cmake),
"cobol": StreamLanguage.define(cobol),
"coffeescript": StreamLanguage.define(coffeeScript),
"common lisp": StreamLanguage.define(commonLisp),
"crystal": StreamLanguage.define(crystal),
"cypher": StreamLanguage.define(cypher),
"d": StreamLanguage.define(d),
"dart": StreamLanguage.define(dart),
"dockerfile": StreamLanguage.define(dockerFile),
"diff": StreamLanguage.define(diff),
"elm": StreamLanguage.define(elm),
"erlang": StreamLanguage.define(erlang),
"fortran": StreamLanguage.define(fortran),
"gherkin": StreamLanguage.define(gherkin),
"groovy": StreamLanguage.define(groovy),
"haskell": StreamLanguage.define(haskell),
"idl": StreamLanguage.define(idl),
"jinja2": StreamLanguage.define(jinja2),
"julia": StreamLanguage.define(julia),
"kotlin": StreamLanguage.define(kotlin),
"livescript": StreamLanguage.define(liveScript),
"lua": StreamLanguage.define(lua),
"nesc": StreamLanguage.define(nesC),
"nginx": StreamLanguage.define(nginx),
"objective-c": StreamLanguage.define(objectiveC),
"objective-c++": StreamLanguage.define(objectiveCpp),
"octave": StreamLanguage.define(octave),
"pascal": StreamLanguage.define(pascal),
"perl": StreamLanguage.define(perl),
"powershell": StreamLanguage.define(powerShell),
"protobuf": StreamLanguage.define(protobuf),
"pug": StreamLanguage.define(pug),
"puppet": StreamLanguage.define(puppet),
"r": StreamLanguage.define(r),
"rpm spec": StreamLanguage.define(rpmSpec),
"ruby": StreamLanguage.define(ruby),
"scala": StreamLanguage.define(scala),
"scheme": StreamLanguage.define(scheme),
"shader": StreamLanguage.define(shader),
"shell": StreamLanguage.define(shell),
"squirrel": StreamLanguage.define(squirrel),
"swift": StreamLanguage.define(swift),
"tcl": StreamLanguage.define(tcl),
"textile": StreamLanguage.define(textile),
"stex": StreamLanguage.define(stex),
"toml": StreamLanguage.define(toml),
"turtle": StreamLanguage.define(turtle),
"vb": StreamLanguage.define(vb),
"vbscript": StreamLanguage.define(vbScript),
"velocity": StreamLanguage.define(velocity),
"verilog": StreamLanguage.define(verilog),
"vhdl": StreamLanguage.define(vhdl),
// "wast": StreamLanguage.define(wast), // available in CodeMirror 6
"webidl": StreamLanguage.define(webIDL),
"xquery": StreamLanguage.define(xQuery),
};

File diff suppressed because it is too large Load diff

284
yarn.lock
View file

@ -84,7 +84,7 @@
"@lezer/common" "^1.0.0" "@lezer/common" "^1.0.0"
"@lezer/go" "^1.0.0" "@lezer/go" "^1.0.0"
"@codemirror/lang-html@^6.0.0", "@codemirror/lang-html@^6.4.9": "@codemirror/lang-html@^6.0.0", "@codemirror/lang-html@^6.4.7", "@codemirror/lang-html@^6.4.9":
version "6.4.9" version "6.4.9"
resolved "https://registry.yarnpkg.com/@codemirror/lang-html/-/lang-html-6.4.9.tgz#d586f2cc9c341391ae07d1d7c545990dfa069727" resolved "https://registry.yarnpkg.com/@codemirror/lang-html/-/lang-html-6.4.9.tgz#d586f2cc9c341391ae07d1d7c545990dfa069727"
integrity sha512-aQv37pIMSlueybId/2PVSP6NPnmurFDVmZwzc7jszd2KAF8qd4VBbvNYPXWQq90WIARjsdVkPbw29pszmHws3Q== integrity sha512-aQv37pIMSlueybId/2PVSP6NPnmurFDVmZwzc7jszd2KAF8qd4VBbvNYPXWQq90WIARjsdVkPbw29pszmHws3Q==
@ -231,6 +231,16 @@
"@lezer/highlight" "^1.0.0" "@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.3.1" "@lezer/lr" "^1.3.1"
"@codemirror/lang-wast@^6.0.2":
version "6.0.2"
resolved "https://registry.yarnpkg.com/@codemirror/lang-wast/-/lang-wast-6.0.2.tgz#d2b14175e5e80d7878cbbb29e20ec90dc12d3a2b"
integrity sha512-Imi2KTpVGm7TKuUkqyJ5NRmeFWF7aMpNiwHnLQe0x9kmrxElndyH0K6H/gXtWwY6UshMRAhpENsgfpSwsgmC6Q==
dependencies:
"@codemirror/language" "^6.0.0"
"@lezer/common" "^1.2.0"
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
"@codemirror/lang-xml@^6.1.0": "@codemirror/lang-xml@^6.1.0":
version "6.1.0" version "6.1.0"
resolved "https://registry.yarnpkg.com/@codemirror/lang-xml/-/lang-xml-6.1.0.tgz#e3e786e1a89fdc9520efe75c1d6d3de1c40eb91c" resolved "https://registry.yarnpkg.com/@codemirror/lang-xml/-/lang-xml-6.1.0.tgz#e3e786e1a89fdc9520efe75c1d6d3de1c40eb91c"
@ -256,6 +266,18 @@
"@lezer/lr" "^1.0.0" "@lezer/lr" "^1.0.0"
"@lezer/yaml" "^1.0.0" "@lezer/yaml" "^1.0.0"
"@codemirror/language@6.x", "@codemirror/language@^6.10.2", "@codemirror/language@^6.10.3", "@codemirror/language@^6.9.0":
version "6.10.6"
resolved "https://registry.yarnpkg.com/@codemirror/language/-/language-6.10.6.tgz#3770aa55fce575b45b1037b390b576907f0061c7"
integrity sha512-KrsbdCnxEztLVbB5PycWXFxas4EOyk/fPAfruSOnDDppevQgid2XZ+KbJ9u+fDikP/e7MW7HPBTvTb8JlZK9vA==
dependencies:
"@codemirror/state" "^6.0.0"
"@codemirror/view" "^6.23.0"
"@lezer/common" "^1.1.0"
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
style-mod "^4.0.0"
"@codemirror/language@^6.0.0", "@codemirror/language@^6.3.0", "@codemirror/language@^6.4.0", "@codemirror/language@^6.6.0", "@codemirror/language@^6.8.0": "@codemirror/language@^6.0.0", "@codemirror/language@^6.3.0", "@codemirror/language@^6.4.0", "@codemirror/language@^6.6.0", "@codemirror/language@^6.8.0":
version "6.10.3" version "6.10.3"
resolved "https://registry.yarnpkg.com/@codemirror/language/-/language-6.10.3.tgz#eb25fc5ade19032e7bf1dcaa957804e5f1660585" resolved "https://registry.yarnpkg.com/@codemirror/language/-/language-6.10.3.tgz#eb25fc5ade19032e7bf1dcaa957804e5f1660585"
@ -322,6 +344,15 @@
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.6.0.tgz#ec6cd237440700bc23ca23087f513c75508958b0" resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.6.0.tgz#ec6cd237440700bc23ca23087f513c75508958b0"
integrity sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA== integrity sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==
"@cookshack/codemirror-lang-csv@^0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@cookshack/codemirror-lang-csv/-/codemirror-lang-csv-0.1.0.tgz#4bb154910b596bbb9cd06654a57e9638fb570ec7"
integrity sha512-CfrZsN80+4fUKeeXVOMNIPMQkGSnftTXPg/lSYBT8QeIpKff/zF/gtS+QtcrsWuRwVI1raXMLuQ9UaApR35Frg==
dependencies:
"@codemirror/language" "^6.0.0"
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
"@dabh/diagnostics@^2.0.2": "@dabh/diagnostics@^2.0.2":
version "2.0.3" version "2.0.3"
resolved "https://registry.yarnpkg.com/@dabh/diagnostics/-/diagnostics-2.0.3.tgz#7f7e97ee9a725dffc7808d93668cc984e1dc477a" resolved "https://registry.yarnpkg.com/@dabh/diagnostics/-/diagnostics-2.0.3.tgz#7f7e97ee9a725dffc7808d93668cc984e1dc477a"
@ -695,6 +726,16 @@
resolved "https://registry.yarnpkg.com/@iconify/types/-/types-2.0.0.tgz#ab0e9ea681d6c8a1214f30cd741fe3a20cc57f57" resolved "https://registry.yarnpkg.com/@iconify/types/-/types-2.0.0.tgz#ab0e9ea681d6c8a1214f30cd741fe3a20cc57f57"
integrity sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg== integrity sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==
"@iizukak/codemirror-lang-wgsl@^0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@iizukak/codemirror-lang-wgsl/-/codemirror-lang-wgsl-0.3.0.tgz#17b975ff2575f526ed563441e0bb8ec1f1cd7ef1"
integrity sha512-Hv957EXK8CzJvoAlKLtHBfC3BIiqFlTBu/0znBgSYhooDBZBpZQEKp1zgr3OYbg03CG1mRJmrypO/HQXB3xavA==
dependencies:
"@codemirror/language" "6.x"
"@lezer/highlight" "1.x"
"@lezer/lr" "^1.x"
codemirror "6.x"
"@img/sharp-darwin-arm64@0.33.5": "@img/sharp-darwin-arm64@0.33.5":
version "0.33.5" version "0.33.5"
resolved "https://registry.yarnpkg.com/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.5.tgz#ef5b5a07862805f1e8145a377c8ba6e98813ca08" resolved "https://registry.yarnpkg.com/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.5.tgz#ef5b5a07862805f1e8145a377c8ba6e98813ca08"
@ -874,6 +915,11 @@
resolved "https://registry.yarnpkg.com/@lezer/common/-/common-1.2.2.tgz#33cb2de75d72602d3ca905cdf7e32049fbe7402c" resolved "https://registry.yarnpkg.com/@lezer/common/-/common-1.2.2.tgz#33cb2de75d72602d3ca905cdf7e32049fbe7402c"
integrity sha512-Z+R3hN6kXbgBWAuejUNPihylAL1Z5CaFqnIe0nTX8Ej+XlIy3EGtXxn6WtLMO+os2hRkQvm2yvaGMYliUzlJaw== integrity sha512-Z+R3hN6kXbgBWAuejUNPihylAL1Z5CaFqnIe0nTX8Ej+XlIy3EGtXxn6WtLMO+os2hRkQvm2yvaGMYliUzlJaw==
"@lezer/common@^1.0.3":
version "1.2.3"
resolved "https://registry.yarnpkg.com/@lezer/common/-/common-1.2.3.tgz#138fcddab157d83da557554851017c6c1e5667fd"
integrity sha512-w7ojc8ejBqr2REPsWxJjrMFsA/ysDCFICn8zEOR9mrqzOu2amhITYuLD8ag6XZf0CFXDrhKqw7+tW8cX66NaDA==
"@lezer/cpp@^1.0.0": "@lezer/cpp@^1.0.0":
version "1.1.2" version "1.1.2"
resolved "https://registry.yarnpkg.com/@lezer/cpp/-/cpp-1.1.2.tgz#1db93b09e011e8a7a08c347c9d5b7749971253bf" resolved "https://registry.yarnpkg.com/@lezer/cpp/-/cpp-1.1.2.tgz#1db93b09e011e8a7a08c347c9d5b7749971253bf"
@ -901,7 +947,7 @@
"@lezer/highlight" "^1.0.0" "@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0" "@lezer/lr" "^1.0.0"
"@lezer/highlight@^1.0.0", "@lezer/highlight@^1.1.3", "@lezer/highlight@^1.2.0": "@lezer/highlight@1.x", "@lezer/highlight@^1.0.0", "@lezer/highlight@^1.1.3", "@lezer/highlight@^1.1.6", "@lezer/highlight@^1.2.0", "@lezer/highlight@^1.2.1":
version "1.2.1" version "1.2.1"
resolved "https://registry.yarnpkg.com/@lezer/highlight/-/highlight-1.2.1.tgz#596fa8f9aeb58a608be0a563e960c373cbf23f8b" resolved "https://registry.yarnpkg.com/@lezer/highlight/-/highlight-1.2.1.tgz#596fa8f9aeb58a608be0a563e960c373cbf23f8b"
integrity sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA== integrity sha512-Z5duk4RN/3zuVO7Jq0pGLJ3qynpxUVsh7IbUbGj88+uV2ApSAn6kWg2au3iJb+0Zi7kKtqffIESgNcRXWZWmSA==
@ -944,7 +990,7 @@
"@lezer/highlight" "^1.0.0" "@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0" "@lezer/lr" "^1.0.0"
"@lezer/lr@^1.0.0", "@lezer/lr@^1.1.0", "@lezer/lr@^1.3.0", "@lezer/lr@^1.3.1", "@lezer/lr@^1.4.0": "@lezer/lr@^1.0.0", "@lezer/lr@^1.1.0", "@lezer/lr@^1.3.0", "@lezer/lr@^1.3.1", "@lezer/lr@^1.3.10", "@lezer/lr@^1.3.7", "@lezer/lr@^1.4.0", "@lezer/lr@^1.4.2", "@lezer/lr@^1.x":
version "1.4.2" version "1.4.2"
resolved "https://registry.yarnpkg.com/@lezer/lr/-/lr-1.4.2.tgz#931ea3dea8e9de84e90781001dae30dea9ff1727" resolved "https://registry.yarnpkg.com/@lezer/lr/-/lr-1.4.2.tgz#931ea3dea8e9de84e90781001dae30dea9ff1727"
integrity sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA== integrity sha512-pu0K1jCIdnQ12aWNaAVU5bzi7Bd1w54J3ECgANPmYLtQKP0HBj2cE/5coBD66MT10xbtIuUr7tg0Shbsvk0mDA==
@ -995,7 +1041,7 @@
"@lezer/highlight" "^1.0.0" "@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0" "@lezer/lr" "^1.0.0"
"@lezer/xml@^1.0.0": "@lezer/xml@^1.0.0", "@lezer/xml@^1.0.2":
version "1.0.5" version "1.0.5"
resolved "https://registry.yarnpkg.com/@lezer/xml/-/xml-1.0.5.tgz#4bb7fd3e527f41b78372477aa753f035b41c3846" resolved "https://registry.yarnpkg.com/@lezer/xml/-/xml-1.0.5.tgz#4bb7fd3e527f41b78372477aa753f035b41c3846"
integrity sha512-VFouqOzmUWfIg+tfmpcdV33ewtK+NSwd4ngSe1aG7HFb4BN0ExyY1b8msp+ndFrnlG4V4iC8yXacjFtrwERnaw== integrity sha512-VFouqOzmUWfIg+tfmpcdV33ewtK+NSwd4ngSe1aG7HFb4BN0ExyY1b8msp+ndFrnlG4V4iC8yXacjFtrwERnaw==
@ -1530,6 +1576,23 @@
resolved "https://registry.yarnpkg.com/@replit/codemirror-lang-csharp/-/codemirror-lang-csharp-6.2.0.tgz#bd652f5788ad93579ee0dcab5b163ed2674b974f" resolved "https://registry.yarnpkg.com/@replit/codemirror-lang-csharp/-/codemirror-lang-csharp-6.2.0.tgz#bd652f5788ad93579ee0dcab5b163ed2674b974f"
integrity sha512-6utbaWkoymhoAXj051mkRp+VIJlpwUgCX9Toevz3YatiZsz512fw3OVCedXQx+WcR0wb6zVHjChnuxqfCLtFVQ== integrity sha512-6utbaWkoymhoAXj051mkRp+VIJlpwUgCX9Toevz3YatiZsz512fw3OVCedXQx+WcR0wb6zVHjChnuxqfCLtFVQ==
"@replit/codemirror-lang-nix@^6.0.1":
version "6.0.1"
resolved "https://registry.yarnpkg.com/@replit/codemirror-lang-nix/-/codemirror-lang-nix-6.0.1.tgz#d87af4ce9eb2cf30fdd64c9be0cb576783331217"
integrity sha512-lvzjoYn9nfJzBD5qdm3Ut6G3+Or2wEacYIDJ49h9+19WSChVnxv4ojf+rNmQ78ncuxIt/bfbMvDLMeMP0xze6g==
"@replit/codemirror-lang-solidity@^6.0.2":
version "6.0.2"
resolved "https://registry.yarnpkg.com/@replit/codemirror-lang-solidity/-/codemirror-lang-solidity-6.0.2.tgz#035443a0f40bc95e333980f626d0c4ae92d95a4a"
integrity sha512-/dpTVH338KFV6SaDYYSadkB4bI/0B0QRF/bkt1XS3t3QtyR49mn6+2k0OUQhvt2ZSO7kt10J+OPilRAtgbmX0w==
dependencies:
"@lezer/highlight" "^1.2.0"
"@replit/codemirror-lang-svelte@^6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@replit/codemirror-lang-svelte/-/codemirror-lang-svelte-6.0.0.tgz#a9d36a2c762280db66809190f0d68fa43befe0d9"
integrity sha512-U2OqqgMM6jKelL0GNWbAmqlu1S078zZNoBqlJBW+retTc5M4Mha6/Y2cf4SVg6ddgloJvmcSpt4hHrVoM4ePRA==
"@replit/codemirror-vim@^6.2.1": "@replit/codemirror-vim@^6.2.1":
version "6.2.1" version "6.2.1"
resolved "https://registry.yarnpkg.com/@replit/codemirror-vim/-/codemirror-vim-6.2.1.tgz#6673ff4be93b7da03d303ef37d6cbfa5f647b74b" resolved "https://registry.yarnpkg.com/@replit/codemirror-vim/-/codemirror-vim-6.2.1.tgz#6673ff4be93b7da03d303ef37d6cbfa5f647b74b"
@ -1635,6 +1698,23 @@
resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.10.4.tgz#427d5549943a9c6fce808e39ea64dbe60d4047f1" resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.10.4.tgz#427d5549943a9c6fce808e39ea64dbe60d4047f1"
integrity sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA== integrity sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA==
"@shopify/lang-jsonc@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@shopify/lang-jsonc/-/lang-jsonc-1.0.0.tgz#b556b227518f8881f215c4014589b7c5b30b6297"
integrity sha512-Zvj0eerl0pKoY41no0DBayDT44PVkTx0hGuD98t3v2JSzqOcyvuP3HtW/NVi8StTbKPLWObX+gqZ+u+rUR2H3g==
dependencies:
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.3.7"
"@ssddanbrown/codemirror-lang-twig@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@ssddanbrown/codemirror-lang-twig/-/codemirror-lang-twig-1.0.0.tgz#691c1c8229f650dda878b81b75b3cf9789fa29ff"
integrity sha512-7WIMIh8Ssc54TooGCY57WU2rKEqZZrcV2tZSVRPtd0gKYsrDEKCSLWpQjUWEx7bdgh3NKHUjq1O4ugIzI/+dwQ==
dependencies:
"@codemirror/language" "^6.0.0"
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
"@swc/counter@^0.1.3": "@swc/counter@^0.1.3":
version "0.1.3" version "0.1.3"
resolved "https://registry.yarnpkg.com/@swc/counter/-/counter-0.1.3.tgz#cc7463bd02949611c6329596fccd2b0ec782b0e9" resolved "https://registry.yarnpkg.com/@swc/counter/-/counter-0.1.3.tgz#cc7463bd02949611c6329596fccd2b0ec782b0e9"
@ -2044,6 +2124,28 @@
loupe "^3.1.2" loupe "^3.1.2"
tinyrainbow "^1.2.0" tinyrainbow "^1.2.0"
"@viz-js/lang-dot@^1.0.4":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@viz-js/lang-dot/-/lang-dot-1.0.4.tgz#ffa2ffdef23d40638c0405b63add557e990a7270"
integrity sha512-429ck5wTMDzzFjX5QAQfamNp1MZwAti3PV0k6mnC7H50sZYjo5qloTl/mwz7parc8DlqkTU2nOQ+RRIsHMM/Tg==
dependencies:
"@codemirror/language" "^6.8.0"
"@lezer/common" "^1.0.3"
"@lezer/highlight" "^1.1.6"
"@lezer/xml" "^1.0.2"
"@xiechao/codemirror-lang-handlebars@^1.0.4":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@xiechao/codemirror-lang-handlebars/-/codemirror-lang-handlebars-1.0.4.tgz#79bf3952a01147461ac0216d8b2cf22097ba008a"
integrity sha512-ghOpKUrRvvPQnvoVXY8axEA3xVFxC8M0zNDgiUdfJykqCMxusb3pN9ZbYYg/8KuoGUR/LDd2rb6eaW7ftcCqOg==
dependencies:
"@codemirror/lang-html" "^6.4.7"
"@codemirror/language" "^6.0.0"
"@lezer/common" "^1.2.0"
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
codemirror "^6.0.1"
abort-controller@^3.0.0: abort-controller@^3.0.0:
version "3.0.0" version "3.0.0"
resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392"
@ -2442,7 +2544,129 @@ clsx@^2.1.1:
resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.1.1.tgz#eed397c9fd8bd882bfb18deab7102049a2f32999" resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.1.1.tgz#eed397c9fd8bd882bfb18deab7102049a2f32999"
integrity sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA== integrity sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==
codemirror@^6.0.0: cm6-graphql@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/cm6-graphql/-/cm6-graphql-0.2.0.tgz#f73880eeed63d0bbe331f14c8220f2265c6735fd"
integrity sha512-nlH5J9doRFUXLPZN9yFiaW6RVkTx35IH5rqfmmYVlNdIRlfBFiJ6UPG8O2zmxZWmBY/jr7+7NvOzaEx5S40rjg==
dependencies:
graphql-language-service "^5.3.0"
codemirror-lang-brainfuck@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/codemirror-lang-brainfuck/-/codemirror-lang-brainfuck-0.1.0.tgz#528d8a4dd4c7c1f57151f6f1c8141719e7313c18"
integrity sha512-4KrqYlQYM0NWzuIjNrUX/Auz7Mo8e99SJB1h9AjXz6PsgMQMl7ljrczhm/DbSD66dthVyYeda2SXpMx9kcbmhw==
dependencies:
"@codemirror/language" "^6.0.0"
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
codemirror-lang-elixir@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/codemirror-lang-elixir/-/codemirror-lang-elixir-4.0.0.tgz#f3e8c0784d0997afb0f307f15592a4c960cc63ef"
integrity sha512-mzFesxo/t6KOxwnkqVd34R/q7yk+sMtHh6vUKGAvjwHmpL7bERHB+vQAsmU/nqrndkwVeJEHWGw/z/ybfdiudA==
dependencies:
"@codemirror/language" "^6.0.0"
lezer-elixir "^1.0.0"
codemirror-lang-hcl@^0.0.0-beta.2:
version "0.0.0-beta.2"
resolved "https://registry.yarnpkg.com/codemirror-lang-hcl/-/codemirror-lang-hcl-0.0.0-beta.2.tgz#05ab6dfa6399c5987942e2eb5051f3426d44aad5"
integrity sha512-R3ew7Z2EYTdHTMXsWKBW9zxnLoLPYO+CrAa3dPZjXLrIR96Q3GR4cwJKF7zkSsujsnWgwRQZonyWpXYXfhQYuQ==
dependencies:
"@codemirror/language" "^6.0.0"
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
codemirror-lang-j@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/codemirror-lang-j/-/codemirror-lang-j-0.1.1.tgz#0ab6ce456b53890505e1d16fea9fe1a0ad8f61cc"
integrity sha512-bA9kZteIwKZG5Qrn43SzB/TlAQ0FOQPjS1VwZ6MDyqxEILvjY1LGxXZARORnIhFGBwuYOo0SokVcZvJvBUy4ZA==
dependencies:
"@codemirror/language" "^6.0.0"
"@lezer/common" "^1.0.0"
"@lezer/lr" "^1.0.0"
codemirror-lang-jq@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/codemirror-lang-jq/-/codemirror-lang-jq-1.0.0.tgz#6865885dea031a0c4e405a0961c071e436c090a4"
integrity sha512-oE0kFbhPQekIykUMty9gN9SoijER5gScGbX+b1GYAUp+XtAekP/NPyUHNiFG3OeqGK/B3NWO0di2CYij9Pf48A==
dependencies:
"@codemirror/language" "^6.0.0"
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
codemirror-lang-makefile@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/codemirror-lang-makefile/-/codemirror-lang-makefile-0.1.1.tgz#0b26d6a89f02faff66af8cf8d16873e62eacbdfd"
integrity sha512-aCmX0TIj88pQDFeBLmfhiE1ZYmLcWf2c9hk0pscbshCk1x1JO1314q67fbpSaPWm86fl8+wZ2gFuNPlVJ2iFzw==
dependencies:
"@codemirror/language" "^6.0.0"
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
codemirror-lang-mermaid@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/codemirror-lang-mermaid/-/codemirror-lang-mermaid-0.5.0.tgz#7e31bd474128febf6296d72412e85d86a9a493eb"
integrity sha512-Taw/2gPCyNArQJCxIP/HSUif+3zrvD+6Ugt7KJZ2dUKou/8r3ZhcfG8krNTZfV2iu8AuGnymKuo7bLPFyqsh/A==
dependencies:
"@codemirror/language" "^6.9.0"
"@lezer/highlight" "^1.1.6"
"@lezer/lr" "^1.3.10"
codemirror-lang-perl@^0.1.5-beta.6:
version "0.1.5-beta.6"
resolved "https://registry.yarnpkg.com/codemirror-lang-perl/-/codemirror-lang-perl-0.1.5-beta.6.tgz#f6c7013ea271805c96e6befbc505e9dc2ec186e8"
integrity sha512-RpKsMRr/5IGcVbo0cj1JWga6My7jbx+Lzs9tbijEEE31a3BcyHcNN0VbmBVm1Z1UJA/C9q0TxhZu5WH/ZgYjFA==
dependencies:
"@codemirror/language" "^6.10.2"
"@lezer/highlight" "^1.2.1"
"@lezer/lr" "^1.4.2"
codemirror-lang-prolog@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/codemirror-lang-prolog/-/codemirror-lang-prolog-0.1.0.tgz#9864ec3a1a554fa9d710d9bbd76b9b0fa2f85227"
integrity sha512-l8UvvCy3ub9kHbREFPG44xhHNG/AuCwkQEbLANfppHi1qZEWdr59ChSo4ZVu5XmC4PrHH3aMUHF+E2KS/V+LpA==
dependencies:
"@codemirror/language" "^6.0.0"
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
codemirror-lang-r@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/codemirror-lang-r/-/codemirror-lang-r-0.1.1.tgz#32c80f61e74008d14ee94b164f9a3cb6c22555de"
integrity sha512-ke9Bm7IPKOoEk0p8LxZJaRlqp8CGOOZns9eKyj/WUaNV58h4uEeWbMpWeJJhVIPvfiuXYkv4FG1hD70gguWJLQ==
dependencies:
"@codemirror/language" "^6.10.3"
lezer-r "^0.1.3"
codemirror-lang-sparql@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/codemirror-lang-sparql/-/codemirror-lang-sparql-2.0.0.tgz#b4c428c4a6a3fd341ada8a092261152102f6455f"
integrity sha512-RM05p8q14KpvwJuQ0Nh30LPR/Uwpti3sH/REUBdOXgVCHJCtgxq0mncrzzrvv+BRUb84GC0t6I5dd6jLg4HggQ==
dependencies:
"@codemirror/language" "^6.0.0"
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
codemirror-lang-spreadsheet@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/codemirror-lang-spreadsheet/-/codemirror-lang-spreadsheet-1.3.0.tgz#0105d8142948477891bc837f86dda64bb2ac1dad"
integrity sha512-Gudwf+QYesPP2202iGcFV5NiS8fzlBM3xDRv0M4NgBDyTbzkN9mHLggMziKxfB9o2jz6yL53w7D11Kt12cQlhQ==
dependencies:
"@codemirror/language" "^6.6.0"
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
codemirror-lang-zig@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/codemirror-lang-zig/-/codemirror-lang-zig-0.1.0.tgz#1973868ce1f4a5a968ef14f922c25dc39fc54eea"
integrity sha512-/6rTQzs1SUQKNTkD88+B4g89h46Yad+Vm1AIuXfgLSWWsqRjkTZovhjZny6TW1BijSjIR2OC9cJlC7mHa/Ystw==
dependencies:
"@codemirror/language" "^6.0.0"
"@lezer/common" "^1.0.0"
"@lezer/lr" "^1.0.0"
codemirror@6.x, codemirror@^6.0.0, codemirror@^6.0.1:
version "6.0.1" version "6.0.1"
resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-6.0.1.tgz#62b91142d45904547ee3e0e0e4c1a79158035a29" resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-6.0.1.tgz#62b91142d45904547ee3e0e0e4c1a79158035a29"
integrity sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg== integrity sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==
@ -2455,6 +2679,11 @@ codemirror@^6.0.0:
"@codemirror/state" "^6.0.0" "@codemirror/state" "^6.0.0"
"@codemirror/view" "^6.0.0" "@codemirror/view" "^6.0.0"
codemirror@^5.65.3:
version "5.65.18"
resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.65.18.tgz#d7146e4271135a9b4adcd023a270185457c9c428"
integrity sha512-Gaz4gHnkbHMGgahNt3CA5HBk5lLQBqmD/pBgeB4kQU6OedZmqMBjlRF0LSrp2tJ4wlLNPm2FfaUd1pDy0mdlpA==
color-convert@^1.9.0, color-convert@^1.9.3: color-convert@^1.9.0, color-convert@^1.9.3:
version "1.9.3" version "1.9.3"
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8"
@ -2617,6 +2846,11 @@ data-view-byte-offset@^1.0.0:
es-errors "^1.3.0" es-errors "^1.3.0"
is-data-view "^1.0.1" is-data-view "^1.0.1"
debounce-promise@^3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/debounce-promise/-/debounce-promise-3.1.2.tgz#320fb8c7d15a344455cd33cee5ab63530b6dc7c5"
integrity sha512-rZHcgBkbYavBeD9ej6sP56XfG53d51CD4dnaw989YX/nZ/ZJfgRx/9ePKmTNiUiyQvh4mtrMoS3OAWW+yoYtpg==
debug@4, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@^4.3.5, debug@^4.3.7: debug@4, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@^4.3.5, debug@^4.3.7:
version "4.3.7" version "4.3.7"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.7.tgz#87945b4151a011d76d95a198d7111c865c360a52" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.7.tgz#87945b4151a011d76d95a198d7111c865c360a52"
@ -3563,6 +3797,20 @@ graphemer@^1.4.0:
resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6"
integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==
graphql-language-service@^5.3.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/graphql-language-service/-/graphql-language-service-5.3.0.tgz#e99da78b129e30bc6e2a3fd897f7df4ab23b2fee"
integrity sha512-gCQIIy7lM9CB1KPLEb+DNZLczA9zuTLEOJE2hEQZTFYInogdmMDRa6RAkvM4LL0LcgcS+3uPs6KtHlcjCqRbUg==
dependencies:
debounce-promise "^3.1.2"
nullthrows "^1.0.0"
vscode-languageserver-types "^3.17.1"
graphql@^16.9.0:
version "16.9.0"
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.9.0.tgz#1c310e63f16a49ce1fbb230bd0a000e99f6f115f"
integrity sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==
has-bigints@^1.0.1, has-bigints@^1.0.2: has-bigints@^1.0.1, has-bigints@^1.0.2:
version "1.0.2" version "1.0.2"
resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa"
@ -4092,6 +4340,22 @@ levn@^0.4.1:
prelude-ls "^1.2.1" prelude-ls "^1.2.1"
type-check "~0.4.0" type-check "~0.4.0"
lezer-elixir@^1.0.0:
version "1.1.2"
resolved "https://registry.yarnpkg.com/lezer-elixir/-/lezer-elixir-1.1.2.tgz#094d287c609742bd36265f8d2156815509286cc8"
integrity sha512-K3yPMJcNhqCL6ugr5NkgOC1g37rcOM38XZezO9lBXy0LwWFd8zdWXfmRbY829vZVk0OGCQoI02yDWp9FF2OWZA==
dependencies:
"@lezer/highlight" "^1.2.0"
"@lezer/lr" "^1.3.0"
lezer-r@^0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/lezer-r/-/lezer-r-0.1.3.tgz#78f70baf8bfd2d485e463d80d773cfc30e0a5b4a"
integrity sha512-tk+7Q54+ZYHKlLZj69GuZNC8+nMYPIFhGjrSe2fTyQAk9GyUsxgRsmF8V4r7cUiB65+lRu5/SrePeTEKQx5ZAQ==
dependencies:
"@lezer/highlight" "^1.2.1"
"@lezer/lr" "^1.4.2"
lilconfig@^2.1.0: lilconfig@^2.1.0:
version "2.1.0" version "2.1.0"
resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52" resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52"
@ -4364,6 +4628,11 @@ npm-run-all@^4.1.5:
shell-quote "^1.6.1" shell-quote "^1.6.1"
string.prototype.padend "^3.0.0" string.prototype.padend "^3.0.0"
nullthrows@^1.0.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1"
integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==
nwsapi@^2.2.12: nwsapi@^2.2.12:
version "2.2.13" version "2.2.13"
resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.13.tgz#e56b4e98960e7a040e5474536587e599c4ff4655" resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.13.tgz#e56b4e98960e7a040e5474536587e599c4ff4655"
@ -5878,6 +6147,11 @@ vitest@^2.1.5:
vite-node "2.1.5" vite-node "2.1.5"
why-is-node-running "^2.3.0" why-is-node-running "^2.3.0"
vscode-languageserver-types@^3.17.1:
version "3.17.5"
resolved "https://registry.yarnpkg.com/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz#3273676f0cf2eab40b3f44d085acbb7f08a39d8a"
integrity sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==
w3c-keyname@^2.2.4: w3c-keyname@^2.2.4:
version "2.2.8" version "2.2.8"
resolved "https://registry.yarnpkg.com/w3c-keyname/-/w3c-keyname-2.2.8.tgz#7b17c8c6883d4e8b86ac8aba79d39e880f8869c5" resolved "https://registry.yarnpkg.com/w3c-keyname/-/w3c-keyname-2.2.8.tgz#7b17c8c6883d4e8b86ac8aba79d39e880f8869c5"