Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from upstream repo github/linguist #2

Open
wants to merge 1,545 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1545 commits
Select commit Hold shift + click to select a range
7855da1
Document the temporary change in language popularity criteria. (#5941)
xiaq Sep 2, 2022
6ede828
Add Gemini language (#6050)
printfn Sep 2, 2022
1fbaa41
Add .tag to Java Server Pages (#6048)
lildude Sep 5, 2022
bf853f1
Release v7.23.0 (#6051)
lildude Sep 5, 2022
f3f2103
Dockerfile Updates (#6066)
jonpulsifer Sep 14, 2022
12cfef6
Add brewfile to bootstrap (#6068)
bval Sep 16, 2022
f3f5de6
Add link to issue #5756 (#6074)
detherminal Sep 20, 2022
4e424ef
Repoint razor-plus grammar submodule at new repo (#6093)
bval Sep 29, 2022
4ea1b93
Accept branch name as argument (#6069)
bval Sep 29, 2022
0f17801
Improve heuristic for XML property lists (#6119)
Alhadis Oct 19, 2022
ab040f2
Add support for Simple File Verification (#6098)
Alhadis Oct 19, 2022
977f8cc
Add support for generic option-lists like `.ackrc` (#6088)
Alhadis Oct 19, 2022
8782fd6
Add {.,}latexmkrc to Perl (#6102)
ObserverOfTime Oct 19, 2022
b51aa7a
Add Cypher Query Language (#6027)
007vasy Oct 20, 2022
dd0f726
Add .jsh extension to Java (#6078)
rcj1 Oct 20, 2022
bea5c73
Add SDC and XDC to TCL language (#6094)
nishtahir Oct 20, 2022
ea5e192
Add Polar language (#6101)
killpack Oct 20, 2022
90bb4c6
Add PDDL (#6117)
celrm Oct 20, 2022
8c924ae
Add WORKSPACE.bazel to Starlark filenames (#6127)
Alphadelta14 Oct 20, 2022
418be6a
Add language Just / Justfile (#6086)
mihaigalos Oct 20, 2022
deb13a4
Add OASv2 and OASv3 languages (#6116)
alfred-sa Oct 20, 2022
e438f15
Add Language: Imba (#6130)
familyfriendlymikey Oct 20, 2022
2dc1c31
Add the Scenic language (#6097)
dfremont Oct 20, 2022
2a01204
Add Visual Basic 6.0 as its own language (#6124)
DecimalTurn Oct 20, 2022
35159ee
Generate samples during bootstrap (#6131)
lildude Oct 20, 2022
daf01cb
Add `mocha.opts` to option-list filenames (#6140)
Alhadis Oct 26, 2022
9198a24
Add `.all-contributorsrc` as JSON (#6137)
spenserblack Oct 26, 2022
9fe9978
Fix invalid markup in WebVTT sample (#6135)
Alhadis Oct 26, 2022
737d12e
Add language support for Mermaid diagrams (#6134)
Alhadis Oct 26, 2022
16a7a52
Detect Sorbet RBI files generated/fetched by Tapioca (#6143)
kivikakk Nov 1, 2022
5bbbf2f
Add support for `.editorconfig` file extension (#6156)
Alhadis Nov 12, 2022
72a59d0
Add language support for Ecmarkup (#6152)
Alhadis Nov 12, 2022
a595c22
Update Ruby versions for CI: drop 2.5 & add 3.1 (#6159)
chenrui333 Nov 13, 2022
7cb8f4a
Add .frm and .cls extensions to VB6 (#6155)
DecimalTurn Nov 14, 2022
a7b898e
Unvendor the `vignettes/` directory for R packages (#6160)
jennybc Nov 14, 2022
1adde0d
Add support for Ink (#5815)
benthicmaw Nov 14, 2022
987bb67
Add Smithy (#6110)
jjant Nov 14, 2022
ece5f4f
Add pdm.lock to TOML and mark as generated (#6133)
lunaynx Nov 14, 2022
59b2d88
Release v7.24.0 (#6162)
lildude Nov 15, 2022
9fcffab
Revert "Change grammar source for Svelte" (#6184)
lildude Nov 28, 2022
6be358e
Release v7.24.1 (#6194)
lildude Nov 28, 2022
4ff25e9
Move .env to own language
lildude Nov 29, 2022
712a1ee
Revert "Move .env to own language"
lildude Nov 29, 2022
c1c34e5
Add clarification for override using alias + case-insensitive (#6187)
DecimalTurn Nov 30, 2022
3eb115d
Add ".plt" to Prolog extensions (#6141)
GeoffChurch Feb 17, 2023
3f6d887
Add support for flake.lock (#6166)
figsoda Feb 17, 2023
c1efde2
Amend Just language entry (#6167)
casey Feb 17, 2023
9ece9b6
Add Kerboscript and Kickstart language (#5981)
Janik-ux Feb 17, 2023
1bc4a3c
Change FreeBasic color (#6191)
DecimalTurn Feb 17, 2023
5f1d854
Add `py` and `pypy` interpreters for Python (#6181)
lordmauve Feb 17, 2023
0b8b3d6
Add Godot Resource Language (#6185)
lildude Feb 17, 2023
13d3869
Add Dotenv as its own language (#6199)
lildude Feb 17, 2023
e5533fa
Update D365 Business Central, AL detection (#6200)
SBalslev Feb 17, 2023
2e9ce8b
Add Circom language support (#6204)
cryptopapi997 Feb 17, 2023
f8b4d33
Change Svelte grammar source (#6216)
sebastinez Feb 17, 2023
c3675dc
Change Rust grammar source (#6220)
sebastinez Feb 17, 2023
ceb731e
Add color for PlantUML. (#6225)
Potherca Feb 17, 2023
11885ab
Add colour for HCL (#6231)
tuunit Feb 17, 2023
6e3617c
Classify `.bash_functions` as Shell (#6242)
Nixinova Feb 17, 2023
86c75c0
Tune Perl/Raku heuristics (#6264)
mauke Feb 17, 2023
1345d01
Add Pyret language (#6257)
Nixinova Feb 17, 2023
b80b69c
Adding JCL (Job Control Language) (#6249)
lnlyssg Feb 27, 2023
c4c03fc
Update grammar compiler to use Go 1.20 (#6296)
lildude Feb 27, 2023
89f4df5
Add MODULE.bazel to Starlark language (#6279)
jsharpe Feb 27, 2023
592bbed
Add Sway language (#6275)
sdankel Mar 2, 2023
735f94c
Add .cnf to INI (#6309)
eggplants Mar 6, 2023
0578636
Exclude obsidian.md preferences (#6306)
sanjarcode Mar 7, 2023
8db1455
Add support for Elvish transcripts. (#6302)
xiaq Mar 8, 2023
469adc1
Create independent Snakemake language (#6270)
SilasK Mar 8, 2023
4042151
Add '.cppm' extension to C++ (#6310)
robert-andrzejuk Mar 8, 2023
508cb81
Edit BASIC heuristic to avoid false positives + new sample (#6320)
DecimalTurn Mar 14, 2023
9b53b4b
Add colour to PR Template and tweak CONTRIBUTING and README files (#6…
lildude Mar 15, 2023
9358f09
Add Erlang application resource file extension (#6297)
gionea Mar 15, 2023
c34f887
Release v7.25.0 (#6313)
lildude Mar 16, 2023
5c40ebb
Update licensed gem dependency (#6333)
lildude Mar 21, 2023
79c4aa4
Update link to Ace modes (#6344)
lildude Mar 27, 2023
16b37e8
Fix `trim_trailing_whitespace` typo in `.editorconfig` file (#6349)
ryandesign Apr 3, 2023
5a0c742
Document that Linguist only analyzes the default branch (#6359)
lildude Apr 3, 2023
e1c3110
Fix typos in troubleshooting.md (#6365)
DecimalTurn May 8, 2023
625539a
Update search query in PR template (#6425)
lildude May 23, 2023
fc31785
Update Ruby versions used for testing (#6423)
lildude May 24, 2023
06628d7
Update CODEOWNERS, gem metadata and enable CI for merge queues (#6430)
lildude May 30, 2023
487ef61
Add TL-Verilog (#5331)
adamint May 30, 2023
acf043b
Add grammar for Apex (#6198)
muenzpraeger May 30, 2023
6f90995
Change colour for OCaml (#6284)
Teddy55Codes May 30, 2023
002f0ce
Add `.swcrc` to "JSON with Comments" (#6328)
g-plane May 30, 2023
fcb2bda
Add `.teamcity` to vendored folders (#6332)
jamielennox May 30, 2023
6286724
Add `proto` alias for protobuf (#6334)
dimitropoulos May 30, 2023
2c4898a
Add MDX language (#6339)
wooorm May 30, 2023
90f1911
Replace markdown grammar with maintained version (#6341)
wooorm May 30, 2023
c31f765
Add `rust-script` to Rust interpreters (#6354)
fornwall May 30, 2023
e9bd67d
Add `.bas` extension to VB6 and heuristics for VB6/VBA (#6355)
DecimalTurn May 30, 2023
6f08b88
Added case-insensitive matches for FreeBasic. (#6367)
XusinboyBekchanov May 30, 2023
fd7a44b
Add RBS language (#6369)
ybiquitous May 30, 2023
6e849ff
Add support for WebAssembly Interface Types (#6376)
eduardomourar May 30, 2023
c9898bc
Add `.txx` extension to C++ (#6380)
wroyca May 30, 2023
b6c3b15
Fix trailing whitespace & empty lines (#6385)
michidk May 30, 2023
7ede0ba
Change source of "Adblock Filter List" grammar (#6392)
scripthunter7 May 30, 2023
8df79df
Add Nushell (#6403)
hustcer May 30, 2023
0a93748
Add `.scalafix.conf` and `.scalafmt.conf` to HOCON filenames (#6404)
LaurenceWarne May 30, 2023
86c877b
Add grammar for Nasal (#6406)
BobDotCom May 30, 2023
dc6fd3c
Fix up vendor regex for bootstrap (#6410)
tclem May 30, 2023
7dd9835
Add `vlcrc` to INI filenames (#6415)
Alhadis May 30, 2023
ae78fc7
Make regexps in `heuristics.yml` more portable (#6417)
jorendorff May 30, 2023
8c74472
Add language support for Go workspaces (#6433)
goto1134 May 30, 2023
5a62830
Add grammar for LOLCODE (#6434)
KrazIvan May 30, 2023
60a76ee
Add D2 language support (#6435)
goto1134 May 30, 2023
9a04901
Add `md` as an alias for Markdown (#6338)
lildude May 30, 2023
8a2415b
Add support for the Pact smart contract language (#5834)
emilypi May 30, 2023
4f337d9
Add VBA grammar (#6440)
DecimalTurn Jun 5, 2023
a480ded
Update WDL's description (#6319)
aofarrel Jun 5, 2023
2b40a3a
Add WGSL support (#6442)
joaogabrielzo Jun 6, 2023
4696ae4
Add `lkml` extension to LookML (#6443)
lildude Jun 7, 2023
af34cb5
Add language support for `hosts` files (#6391)
Alhadis Jun 8, 2023
7071400
Update all grammars
lildude Jun 15, 2023
77a05ea
Update cached licenses
lildude Jun 15, 2023
39b3b07
v7.26.0
lildude Jun 15, 2023
f86cdb6
Revert "v7.26.0"
lildude Jun 15, 2023
faa15da
Revert "Update cached licenses"
lildude Jun 15, 2023
d352058
Revert "Update all grammars"
lildude Jun 15, 2023
b5432eb
Release v7.26.0 (#6449)
lildude Jun 19, 2023
e855ef2
Update list of tree-sitter grammars (#6460)
lildude Jun 22, 2023
5ffc61a
Address potential causes for "Your search did not match any code" iss…
DecimalTurn Aug 2, 2023
916bd8f
Bump mocha dependency version (#6499)
lildude Aug 3, 2023
a0a6d59
Harden heuristics against `Regexp::TimeoutError` errors (#6518)
lildude Sep 7, 2023
ee12e6c
Platform agnostic line endings (#6530)
DecimalTurn Sep 7, 2023
befa56a
Add `pikchr` as an alias of Pic (#6522)
Alhadis Sep 7, 2023
e236e97
Add support for Ruby Option Lists (#6474)
spenserblack Sep 7, 2023
e302011
Add an entry for Bluespec's other syntax (#6476)
quark17 Sep 7, 2023
f36d835
Add `hosts` to Host file aliases (#6486)
DandelionSprout Sep 7, 2023
073af2e
Cross-validation script: Add filter for extensions (#6490)
DecimalTurn Sep 7, 2023
108fe81
Mark files under `htmlcov/` as generated (#6491)
spenserblack Sep 7, 2023
ec4435f
Add `.code-workspace` to `JSON with Comments` (#6502)
wxh06 Sep 7, 2023
55cfb49
Add Rez (#6524)
cooljeanius Sep 7, 2023
9b634a0
Add .vs GLSL vertex shader extension (#6536)
FrostKiwi Sep 7, 2023
826cc7d
Create devcontainer configuration (#6479)
spenserblack Sep 7, 2023
2fdbac7
Remove redundancy in `AsciiDoc`'s regex pattern (#6537)
DecimalTurn Sep 7, 2023
28aa3fc
Add Typst (#6379)
michidk Sep 11, 2023
8bec00e
Add language: Sweave (#6544)
grady Sep 12, 2023
fd79827
Use ghcr.io for grammar compiler docker container (#6322)
lildude Sep 13, 2023
6b349cf
Improve and document using Codespaces and Devcontainers (#6539)
lildude Sep 13, 2023
29e811b
Add Gradle Kotlin DSL (#6541)
lildude Sep 13, 2023
3daa033
Revert "Use ghcr.io for grammar compiler docker container" (#6546)
lildude Sep 13, 2023
7ca3799
Release v7.27.0 (#6540)
lildude Sep 13, 2023
7ef9368
Update color for Sway (#6498)
sdankel Dec 5, 2023
9e11555
Ungroup Git Attributes and Ignore List from INI (#6552)
DecimalTurn Dec 5, 2023
e9a966c
Add ace_mode for Nasal (#6563)
BobDotCom Dec 5, 2023
c653380
Replace Open Policy Agent grammar (#6575)
ashutosh-narkar Dec 5, 2023
f905c58
Register `deno.lock` as JSON (#6590)
spenserblack Dec 5, 2023
f4c35bf
Replace Swift grammar (#6603)
jtbandes Dec 5, 2023
09d9842
Change DM grammar source (#6605)
vvvv-vvvv Dec 5, 2023
77d7f83
Fix group name casing: prolog -> Prolog (#6615)
varungandhi-src Dec 5, 2023
b145c71
Add Toit language (#6419)
floitsch Dec 5, 2023
4207d7e
Add support for EdgeQL languages (#5780)
DAlperin Dec 5, 2023
2a527e1
Address CodeQL security alerts (#6609)
lildude Dec 5, 2023
6c4c9c1
Add Praat scripting language (#6620)
JJWRoeloffs Dec 6, 2023
a4e2bf9
Add Glimmer JS language (#6578)
gilest Dec 6, 2023
c0da81e
Revert "Add Glimmer JS language" (#6626)
lildude Dec 6, 2023
36052b7
Add Glimmer JS language (#6630)
gilest Dec 8, 2023
71a100d
Add support for the lean comment format to the tokenizer (#6625)
lildude Dec 11, 2023
6a9a3e4
Add support for Lean 4 (#6616)
eric-wieser Dec 11, 2023
a45d988
Change grammar source for Genero language and rename (#6632)
sebflaesch Dec 11, 2023
8c380f3
Add Terraform Template language (#6604)
johnmays Dec 12, 2023
ee9119e
Release v7.28.0 (#6627)
lildude Dec 12, 2023
559a642
Change VBA grammar source (#6678)
serkonda7 Jan 17, 2024
fa9636b
Switch Ruby VS Code extensions (#6738)
spenserblack Mar 7, 2024
9cc7577
Add Roc Language (#6633)
ryanb Mar 8, 2024
a42eb2d
Replace SourcePawn grammar (#6635)
Sarrus1 Mar 8, 2024
ac6d8c5
Add Bluespec BH TextMate grammar (#6644)
quark17 Mar 8, 2024
3bbc4af
Add `.bicepparam` to list of Bicep file extensions (#6664)
anthony-c-martin Mar 8, 2024
d54d037
Add BitBake grammar and missing extensions (#6665)
ParksProjets Mar 8, 2024
88b2ff5
Add SARIF as JSON alias (#6674)
orhantoy Mar 8, 2024
df4abbc
Add `cs.pp` extension to C# (#6679)
DecimalTurn Mar 8, 2024
dabba4a
Add Glimmer TS language (#6680)
gilest Mar 8, 2024
c91b03e
Add `jq` interpreters (#6694)
Alhadis Mar 8, 2024
27b2b66
Add Edge Language (#6695)
evoactivity Mar 8, 2024
66cfa62
Fix TextMate Scope for '.ice' Files (#6714)
InsertCreativityHere Mar 8, 2024
cb3d957
Add heuristics for C++ macros (#6715)
jtibshirani Mar 8, 2024
8c35ea0
Add TextGrid data file format (#6719)
JJWRoeloffs Mar 8, 2024
58ef7f3
Remove unnecessary alias for R (#6724)
InSyncWithFoo Mar 8, 2024
86de354
Add tmux.conf and .tmux.conf as shell filenames (#6726)
WuerfelDev Mar 8, 2024
63dad32
Replace Common Lisp grammar source (#6728)
qingpeng9802 Mar 8, 2024
de63e8a
Add `.env.sample` as Dotenv filename (#6732)
spenserblack Mar 8, 2024
32cc169
Add highlighting and correct file extensions for TI Program (#6688)
TIny-Hacker Mar 8, 2024
aa11c2c
Add Pip Requirements language (#6739)
spenserblack Mar 8, 2024
94e7b20
Fix VBA heuristic for Access Option Compare statement (#6742)
DecimalTurn Mar 10, 2024
943449c
Change Lua grammar source (#6661)
kulothunganug Mar 12, 2024
ca188d5
Add SQLx query files as generated (#6748)
mercxry Mar 12, 2024
28b457e
Add pnpm lockfiles as generated (#6749)
SuperchupuDev Mar 12, 2024
288e97a
Add language: Mojo (#6400)
lattner Mar 13, 2024
82e2cc3
Add Slint (#6750)
ogoffart Mar 13, 2024
4a807b4
Add Oberon language (#4645)
idrougge Mar 13, 2024
4ac734c
Release v7.29.0 (#6753)
lildude Mar 13, 2024
4cc5ef6
Make `max_tree_size` configurable per-repository (#6806)
issyl0 May 10, 2024
32ae1b4
Pass custom tree size through `{git,github}-linguist` binaries (#6825)
issyl0 May 14, 2024
d9b3140
The `--tree-size` arg should always be an Integer (#6826)
issyl0 May 14, 2024
e2012cd
Rely on the `Linguist::Repository::MAX_TREE_SIZE` default value more …
issyl0 May 15, 2024
0204ffa
Add Luau language (#6612)
robloxiandemo Jun 7, 2024
c808119
Add BQN language (#6623)
skykanin Jun 7, 2024
6c26c74
Add Overpass QL (#6709)
k-yle Jun 7, 2024
ebe6ef7
Add Pkl language (#6730)
stackoverflow Jun 7, 2024
692dbb9
Register `.sublime-color-scheme` extension as JSON with Comments (#6758)
Nixinova Jun 7, 2024
03c51e9
Add Cron table language (#6759)
Nixinova Jun 7, 2024
efa4ec0
Add NMODL Language (#6776)
matz-e Jun 7, 2024
9d2fd70
Register `MODULE.bazel.lock` as JSON and generated (#6783)
dtolnay Jun 7, 2024
00bf9c9
Add `Cargo.toml.orig` as TOML filename (#6787)
spenserblack Jun 7, 2024
3ec0889
Add `tsx` to TypeScript interpreters (#6788)
Alhadis Jun 7, 2024
2723b1f
Extend `justfile` file detection (#6795)
mkatychev Jun 7, 2024
c95904f
Add templ language (#6798)
tris203 Jun 7, 2024
d295f93
Update HCL/Terraform grammar to `hashicorp/syntax` (#6802)
dbanck Jun 7, 2024
712c4eb
Detect zig zon files (#6820)
softprops Jun 7, 2024
c344f7e
Add FIRRTL language (#6848)
seldridge Jun 7, 2024
b15f99b
Add support for RON (Rusty Object Notation) (#6849)
spenserblack Jun 7, 2024
117012a
Add Julia REPL (#6859)
adrhill Jun 7, 2024
1149d0f
Add support for Caddyfile (#6862)
willnorris Jun 7, 2024
2d556f7
Support `.envrc` file (#6865)
spenserblack Jun 7, 2024
e24649a
Revert "Add Overpass QL" (#6871)
lildude Jun 7, 2024
42fd3c2
Release v7.30.0 (#6870)
lildude Jun 7, 2024
39fd5e9
Clarify sentence in CONTRIBUTING (#6887)
lishaduck Jun 19, 2024
d190ad8
Manually remove module in `.git` when replacing grammars (#6990)
lildude Aug 14, 2024
34ae2f4
Add Noir (#6432)
critesjosh Aug 29, 2024
d78b981
Add support for Java Template Engine (#6610)
maths22 Aug 29, 2024
aec591d
Add the Cylc language. (#6832)
oliver-sanders Aug 29, 2024
da1e754
Add a TextMate grammar for PowerBuilder (#6875)
micha4w Aug 29, 2024
6d9cff3
Mark `deno.lock` as generated (#6885)
lishaduck Aug 29, 2024
dc706f8
VB6: Replace VB.NET's grammar by VBA's grammar (#6894)
DecimalTurn Aug 29, 2024
0943766
Remove backreferences in regex patterns for `XML Property List` and `…
DecimalTurn Aug 29, 2024
e96062f
Replace mcfunction grammar (#6916)
RitikShah Aug 29, 2024
d82c4ca
Split Cairo out into separate Cairo and Cairo Zero languages (#6917)
mkaput Aug 29, 2024
a3daa42
Change Q# grammar repository (#6934)
ScottCarda-MS Aug 29, 2024
817ab56
Add iCalendar Language (#6940)
DecimalTurn Aug 29, 2024
b999d86
Add VCF data formats (#6941)
DecimalTurn Aug 29, 2024
198bd6b
Add B4X (#6965)
DecimalTurn Aug 29, 2024
8bdd2cd
Replace the WDL language grammar (#6972)
claymcleod Aug 29, 2024
cb03400
Fix heuristic for extension `.yy` (JSON vs Yacc) (#6976)
DecimalTurn Aug 29, 2024
48b3af8
Replace Just grammar (#6985)
nefrob Aug 29, 2024
2271f6c
Optimization: Use `match?` instead of `match` (#7003)
DecimalTurn Aug 29, 2024
86f775d
Add `uv.lock` as a TOML file (#7006)
edgarrmondragon Aug 29, 2024
d378ac3
Carbon language support (#7011)
jamboington-the-18th Aug 29, 2024
22e1017
Add support for `HOSTS.TXT` files (#7014)
Alhadis Aug 29, 2024
c03e71b
Add `.peggy` for PEG.js (#7017)
spenserblack Aug 29, 2024
b37bd86
Add vimscript alias to Vim Script (#7020)
jmdevin Aug 29, 2024
f7c7baa
New Centroid-based Classifier (#5103)
smola Aug 29, 2024
0523920
Add the LiveCode Script language. (#6833)
torocruzand Aug 29, 2024
c0d3f3b
Change PEG.js to use Peggy grammar (#7018)
spenserblack Aug 29, 2024
ebbedf0
Add Dune (OCaml build system) (#6814)
kisaragi-hiu Aug 29, 2024
15e5607
Add `.resource` extension to Robot Framework (#6500)
Noordsestern Aug 31, 2024
5e5d705
Release v8.0.0 (#7021)
lildude Sep 2, 2024
f0aebbe
Update number of acceptable classification errors. (#7026)
DecimalTurn Sep 3, 2024
9b50e9e
Release v8.0.1 (#7043)
lildude Sep 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Available versions: https://github.com/devcontainers/images/tree/main/src/ruby
FROM mcr.microsoft.com/devcontainers/ruby
RUN apt update && apt install -y cmake

Choose a reason for hiding this comment

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

Suggested change
RUN apt update && apt install -y cmake
RUN apt update && apt install -y cmake

27 changes: 27 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "Ruby",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/go:1": {}
},
"customizations": {
"codespaces": {
"openFiles": [
"CONTRIBUTING.md",
"lib/linguist/languages.yml"
]
},
"vscode": {
"extensions": [
"EditorConfig.EditorConfig",
"redhat.vscode-yaml",
"Shopify.ruby-lsp"
]
}
},
"onCreateCommand": ".devcontainer/onCreateCommand.sh",
"remoteUser": "vscode"
}
4 changes: 4 additions & 0 deletions .devcontainer/onCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
./script/bootstrap
git remote add linguist https://github.com/github-linguist/linguist
git fetch linguist v2.0.0:v2.0.0 test/attributes:test/attributes test/master:test/master
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git/
test/
29 changes: 29 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
root = true

[*]
charset = utf-8

Choose a reason for hiding this comment

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

所得到的多

Choose a reason for hiding this comment

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

Hi I'd like to pull request

end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{h,c}]
indent_style = tab
indent_size = 8

[{Dockerfile,Makefile,*.go,script/add-grammar}]
indent_style = tab
indent_size = 4

# Ignore fixtures and vendored files
[{grammars,test/fixtures,samples,vendor}/**]
charset = unset
end_of_line = unset
indent_size = unset
indent_style = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Fix syntax highlighting for devcontainer files
.devcontainer/*.json linguist-language=JSON-with-Comments
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# All pull requests need to be reviewed by someone from GitHub.
#
* @github-linguist/github
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Found a bug? Let us know. Please start with **Discussions** if your issue is regarding unexpected language analysis or statistics.
title: ''
labels: Bug
assignees: ''
---
<!--
NOTE: Please use Discussions for all incorrect or unexpected language analysis or
statistics behaviour BEFORE opening a bug.

If you know how to fix this bug, please feel free to submit a Pull Request
with your fix; we don't need an issue first.
-->

## Describe the bug
<!--
Please provide a clear and detailed explanation of the bug you've found, and why
you consider it to be a bug.

Ideally, please provide steps to reproduce the bug and include the output from
using `github-linguist` on the command line.
-->

### Expected behaviour
<!-- What was it you expected to see? Be detailed and specific. -->

### Related discussion
<!-- Include links to related discussion threads, if any. -->

### Additional notes
<!-- Add any remaining details here; e.g., context, @‌mentions, external links, etc -->
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Get help in GitHub Discussions
url: https://github.com/github/linguist/discussions
about: Have a question? Surprised by your repository language analysis? The quickest way to get help is on Linguist's GitHub Discussions!
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Feature request
about: Suggest an enhancement
title: ''
labels: Improvement
assignees: ''
---

## Describe the enhancement

<!--

Please let us know what enhancement you'd like to see made to Linguist. The more
detail you provide, the better.

-->
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/new_language.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: New language
about: Request support for a new language
title: ''
labels: Add Language, Good First Issue
assignees: ''
---

<!--

👋 If you have the time and know-how, send us a pull-request: everybody is welcome to contribute!
Otherwise, fill out the following fields as best you can.

-->
## Language name


## URL of example repository


## URL of syntax highlighting grammar


## Most popular extensions

<!--

List the extensions commonly used by this language.

-->

## Detected language

<!--

What language are files for this language being identified as, if any?

-->
59 changes: 59 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!--- Briefly describe your changes in the field above. -->

## Description
<!--- If necessary, go into depth of what this pull request is doing. -->

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- Please remove whole sections, not points within the sections, that do not apply -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] **I am adding a new extension to a language.**
- [ ] The new extension is used in hundreds of repositories on GitHub.com
- Search results for each extension:
<!-- Replace FOOBAR with the new extension, and KEYWORDS with keywords unique to the language. Repeat for each extension added. -->
- https://github.com/search?type=code&q=NOT+is%3Afork+path%3A*.FOOBAR+KEYWORDS
- [ ] I have included a real-world usage sample for all extensions added in this PR:
- Sample source(s):
- [URL to each sample source, if applicable]
- Sample license(s):
- [ ] I have included a change to the heuristics to distinguish my language from others using the same extension.

- [ ] **I am adding a new language.**
- [ ] The extension of the new language is used in hundreds of repositories on GitHub.com.
- Search results for each extension:
<!-- Replace FOOBAR with the new extension, and KEYWORDS with keywords unique to the language. Repeat for each extension added. -->
- https://github.com/search?type=code&q=NOT+is%3Afork+path%3A*.FOOBAR+KEYWORDS
- [ ] I have included a real-world usage sample for all extensions added in this PR:
- Sample source(s):
- [URL to each sample source, if applicable]
- Sample license(s):
- [ ] I have included a syntax highlighting grammar: [URL to grammar repo]
<!-- Setting a color is strongly recommended, but optional: `#cccccc` is used by default -->
- [ ] I have added a color
- Hex value: `#RRGGBB`
- Rationale: <!-- Please specify why you chose this color (if it was randomly selected, please say so); it helps arbitrate future requests to change a language's color -->
- [ ] I have updated the heuristics to distinguish my language from others using the same extension.

- [ ] **I am fixing a misclassified language**
- [ ] I have included a new sample for the misclassified language:
- Sample source(s):
- [URL to each sample source, if applicable]
- Sample license(s):
- [ ] I have included a change to the heuristics to distinguish my language from others using the same extension.

- [ ] **I am changing the source of a syntax highlighting grammar**
- Old: [URL to grammar repo]
- New: [URL to grammar repo]

- [ ] **I am updating a grammar submodule**
<!-- That's not necessary, grammar submodules are updated automatically with each new release. -->

- [ ] **I am adding new or changing current functionality**
<!-- This includes modifying the vendor, documentation, and generated lists. -->
- [ ] I have added or updated the tests for the new or changed functionality.

- [ ] **I am changing the color associated with a language**
<!-- Please ensure you have gathered agreement from the wider language community _before_ opening this PR -->
- [ ] I have obtained agreement from the wider language community on this color change.
- [URL to public discussion]
- [Optional: URL to official branding guidelines for the language]
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Only check for Ruby gem updates
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "daily"
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Run Tests

on:
# Trigger the workflow on push or pull request, but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
merge_group:

permissions:
contents: read

jobs:
run:
name: Ruby ${{ matrix.ruby }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '3.2', '3.1', '3.0' ]
steps:
- uses: actions/checkout@v1
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Fetch grammar submodules
run: |
git fetch origin master:master v2.0.0:v2.0.0 test/attributes:test/attributes test/master:test/master
sed -i 's|[email protected]:|https://github.com/|' .gitmodules
git submodule init
git submodule sync --quiet
script/fast-submodule-update
- name: Run tests
run: bundle exec rake
- name: Check Licenses
run: bundle exec licensed status -c vendor/licenses/config.yml
dockerfile:
name: Test Dockerfile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build container
run: docker build -t linguist .
- name: Analyse current directory
run: docker run --rm -v $(pwd):$(pwd) -w $(pwd) --user $(id -u) -t linguist | tee output
- name: Confirm analysis
run: grep Ruby output
classifier:
name: Classifier cross-validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Build
run: bundle exec rake samples
- name: Run cross-validation
run: bundle exec script/cross-validation --test 2>&1
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
*.gem
/Gemfile.lock
.bundle/
.idea
benchmark/
lib/linguist/samples.json
/grammars
/node_modules
test/fixtures/ace_modes.json
/vendor/gems/
/tmp
*.bundle
*.so
linguist-grammars*
.venv
Brewfile.lock.json
Loading