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